Skip to content

Commit e27468c

Browse files
committed
reenable tests
1 parent d4d4658 commit e27468c

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

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

Lines changed: 4 additions & 5 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()
@@ -48,9 +48,8 @@ private static bool RecognizerInstalledAndEnabled()
4848
return true;
4949
}
5050

51-
// [ConditionalFact(nameof(RecognizerInstalledAndEnabled))]
52-
// TEMPORARY [OuterLoop] // Pops UI
53-
[Fact]
51+
[ConditionalFact(nameof(RecognizerInstalledAndEnabled))]
52+
[OuterLoop] // Pops UI
5453
public static void SpeechRecognizer()
5554
{
5655
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 => true;//PlatformDetection.IsNotMonoRuntime &&
26-
// PlatformDetection.IsNotWindowsNanoNorServerCore &&
27-
// SpeechRecognitionEngine.InstalledRecognizers().Count > 0;
25+
public static bool HasInstalledRecognizers => PlatformDetection.IsNotMonoRuntime &&
26+
PlatformDetection.IsNotWindowsNanoNorServerCore &&
27+
SpeechRecognitionEngine.InstalledRecognizers().Count > 0;
2828

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

0 commit comments

Comments
 (0)