@@ -15,7 +15,7 @@ public class EnvironmentTests
1515 private const string PosixPathVar = "/home/john.doe/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" ;
1616 private const string PosixExecName = "foo" ;
1717
18- [ PlatformFact ( Platforms . Windows ) ]
18+ [ WindowsFact ]
1919 public void WindowsEnvironment_TryLocateExecutable_NotExists_ReturnFalse ( )
2020 {
2121 var fs = new TestFileSystem ( ) ;
@@ -28,7 +28,7 @@ public void WindowsEnvironment_TryLocateExecutable_NotExists_ReturnFalse()
2828 Assert . Null ( actualPath ) ;
2929 }
3030
31- [ PlatformFact ( Platforms . Windows ) ]
31+ [ WindowsFact ]
3232 public void WindowsEnvironment_TryLocateExecutable_Exists_ReturnTrueAndPath ( )
3333 {
3434 string expectedPath = @"C:\Windows\system32\foo.exe" ;
@@ -48,7 +48,7 @@ public void WindowsEnvironment_TryLocateExecutable_Exists_ReturnTrueAndPath()
4848 Assert . Equal ( expectedPath , actualPath ) ;
4949 }
5050
51- [ PlatformFact ( Platforms . Windows ) ]
51+ [ WindowsFact ]
5252 public void WindowsEnvironment_TryLocateExecutable_ExistsMultiple_ReturnTrueAndFirstPath ( )
5353 {
5454 string expectedPath = @"C:\Users\john.doe\bin\foo.exe" ;
@@ -70,7 +70,7 @@ public void WindowsEnvironment_TryLocateExecutable_ExistsMultiple_ReturnTrueAndF
7070 Assert . Equal ( expectedPath , actualPath ) ;
7171 }
7272
73- [ PlatformFact ( Platforms . Posix ) ]
73+ [ PosixFact ]
7474 public void PosixEnvironment_TryLocateExecutable_NotExists_ReturnFalse ( )
7575 {
7676 var fs = new TestFileSystem ( ) ;
@@ -83,7 +83,7 @@ public void PosixEnvironment_TryLocateExecutable_NotExists_ReturnFalse()
8383 Assert . Null ( actualPath ) ;
8484 }
8585
86- [ PlatformFact ( Platforms . Posix ) ]
86+ [ PosixFact ]
8787 public void PosixEnvironment_TryLocateExecutable_Exists_ReturnTrueAndPath ( )
8888 {
8989 string expectedPath = "/usr/local/bin/foo" ;
@@ -103,7 +103,7 @@ public void PosixEnvironment_TryLocateExecutable_Exists_ReturnTrueAndPath()
103103 Assert . Equal ( expectedPath , actualPath ) ;
104104 }
105105
106- [ PlatformFact ( Platforms . Posix ) ]
106+ [ PosixFact ]
107107 public void PosixEnvironment_TryLocateExecutable_ExistsMultiple_ReturnTrueAndFirstPath ( )
108108 {
109109 string expectedPath = "/home/john.doe/bin/foo" ;
@@ -125,7 +125,7 @@ public void PosixEnvironment_TryLocateExecutable_ExistsMultiple_ReturnTrueAndFir
125125 Assert . Equal ( expectedPath , actualPath ) ;
126126 }
127127
128- [ PlatformFact ( Platforms . MacOS ) ]
128+ [ MacOSFact ]
129129 public void MacOSEnvironment_TryLocateExecutable_Paths_Are_Ignored ( )
130130 {
131131 List < string > pathsToIgnore = new List < string > ( )
@@ -150,8 +150,8 @@ public void MacOSEnvironment_TryLocateExecutable_Paths_Are_Ignored()
150150 Assert . True ( actualResult ) ;
151151 Assert . Equal ( expectedPath , actualPath ) ;
152152 }
153-
154- [ PlatformFact ( Platforms . Posix ) ]
153+
154+ [ PosixFact ]
155155 public void PosixEnvironment_SetEnvironmentVariable_Sets_Expected_Value ( )
156156 {
157157 var variable = "FOO_BAR" ;
@@ -166,8 +166,8 @@ public void PosixEnvironment_SetEnvironmentVariable_Sets_Expected_Value()
166166 Assert . Contains ( env . Variables , item
167167 => item . Key . Equals ( variable ) && item . Value . Equals ( value ) ) ;
168168 }
169-
170- [ PlatformFact ( Platforms . Windows ) ]
169+
170+ [ WindowsFact ]
171171 public void WindowsEnvironment_SetEnvironmentVariable_Sets_Expected_Value ( )
172172 {
173173 var variable = "FOO_BAR" ;
0 commit comments