Skip to content

Commit d4d4658

Browse files
committed
enable more tests to fail to get messages
1 parent 734dc95 commit d4d4658

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

src/libraries/System.Speech/tests/SpeechRecognizerTests.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
namespace SampleSynthesisTests
1919
{
20-
[ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoNorServerCore))] // No SAPI on Nano or Server Core
21-
[SkipOnMono("No SAPI on Mono")]
20+
// [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoNorServerCore))] // No SAPI on Nano or Server Core
21+
// [SkipOnMono("No SAPI on Mono")]
2222
public static class SpeechRecognizerTests
2323
{
2424
private static bool RecognizerInstalledAndEnabled()
@@ -42,16 +42,15 @@ private static bool RecognizerInstalledAndEnabled()
4242
// PlatformNotSupportedException : No recognizer is installed.
4343
// PlatformNotSupportedException : The user has chosen to disable speech from running on the machine, or the system is not set up to run speech.
4444
// InvalidOperationException : No audio device is installed.
45-
//return false;
46-
// TEMPORARY -- to see error messages
47-
return true;
45+
return false;
4846
}
4947

5048
return true;
5149
}
5250

53-
[ConditionalFact(nameof(RecognizerInstalledAndEnabled))]
54-
[OuterLoop] // Pops UI
51+
// [ConditionalFact(nameof(RecognizerInstalledAndEnabled))]
52+
// TEMPORARY [OuterLoop] // Pops UI
53+
[Fact]
5554
public static void SpeechRecognizer()
5655
{
5756
if (Thread.CurrentThread.CurrentCulture.ToString() != "en-US")

src/libraries/System.Speech/tests/SynthesizeRecognizeTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717

1818
namespace SampleSynthesisTests
1919
{
20-
[ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoNorServerCore))] // No SAPI on Nano or Server Core
21-
[SkipOnMono("No SAPI on Mono")]
20+
//[ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoNorServerCore))] // No SAPI on Nano or Server Core
21+
//[SkipOnMono("No SAPI on Mono")]
2222
public class SynthesizeRecognizeTests : FileCleanupTestBase
2323
{
2424
// Our Windows 7 and Windows 8.1 queues seem to have no recognizers installed
25-
public static bool HasInstalledRecognizers => PlatformDetection.IsNotMonoRuntime &&
26-
PlatformDetection.IsNotWindowsNanoNorServerCore &&
27-
SpeechRecognitionEngine.InstalledRecognizers().Count > 0;
25+
public static bool HasInstalledRecognizers => true;//PlatformDetection.IsNotMonoRuntime &&
26+
// PlatformDetection.IsNotWindowsNanoNorServerCore &&
27+
// SpeechRecognitionEngine.InstalledRecognizers().Count > 0;
2828

2929
[ConditionalFact(nameof(HasInstalledRecognizers))]
3030
public void SpeechSynthesizerToSpeechRecognitionEngine()

0 commit comments

Comments
 (0)