File tree 2 files changed +9
-10
lines changed
src/libraries/System.Speech/tests 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 17
17
18
18
namespace SampleSynthesisTests
19
19
{
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" ) ]
22
22
public static class SpeechRecognizerTests
23
23
{
24
24
private static bool RecognizerInstalledAndEnabled ( )
@@ -48,9 +48,8 @@ private static bool RecognizerInstalledAndEnabled()
48
48
return true ;
49
49
}
50
50
51
- // [ConditionalFact(nameof(RecognizerInstalledAndEnabled))]
52
- // TEMPORARY [OuterLoop] // Pops UI
53
- [ Fact ]
51
+ [ ConditionalFact ( nameof ( RecognizerInstalledAndEnabled ) ) ]
52
+ [ OuterLoop ] // Pops UI
54
53
public static void SpeechRecognizer ( )
55
54
{
56
55
if ( Thread . CurrentThread . CurrentCulture . ToString ( ) != "en-US" )
Original file line number Diff line number Diff line change 17
17
18
18
namespace SampleSynthesisTests
19
19
{
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" ) ]
22
22
public class SynthesizeRecognizeTests : FileCleanupTestBase
23
23
{
24
24
// 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 ;
28
28
29
29
[ ConditionalFact ( nameof ( HasInstalledRecognizers ) ) ]
30
30
public void SpeechSynthesizerToSpeechRecognitionEngine ( )
You can’t perform that action at this time.
0 commit comments