@@ -15,7 +15,7 @@ public class EnvironmentTests
15
15
private const string PosixPathVar = "/home/john.doe/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" ;
16
16
private const string PosixExecName = "foo" ;
17
17
18
- [ PlatformFact ( Platforms . Windows ) ]
18
+ [ WindowsFact ]
19
19
public void WindowsEnvironment_TryLocateExecutable_NotExists_ReturnFalse ( )
20
20
{
21
21
var fs = new TestFileSystem ( ) ;
@@ -28,7 +28,7 @@ public void WindowsEnvironment_TryLocateExecutable_NotExists_ReturnFalse()
28
28
Assert . Null ( actualPath ) ;
29
29
}
30
30
31
- [ PlatformFact ( Platforms . Windows ) ]
31
+ [ WindowsFact ]
32
32
public void WindowsEnvironment_TryLocateExecutable_Exists_ReturnTrueAndPath ( )
33
33
{
34
34
string expectedPath = @"C:\Windows\system32\foo.exe" ;
@@ -48,7 +48,7 @@ public void WindowsEnvironment_TryLocateExecutable_Exists_ReturnTrueAndPath()
48
48
Assert . Equal ( expectedPath , actualPath ) ;
49
49
}
50
50
51
- [ PlatformFact ( Platforms . Windows ) ]
51
+ [ WindowsFact ]
52
52
public void WindowsEnvironment_TryLocateExecutable_ExistsMultiple_ReturnTrueAndFirstPath ( )
53
53
{
54
54
string expectedPath = @"C:\Users\john.doe\bin\foo.exe" ;
@@ -70,7 +70,7 @@ public void WindowsEnvironment_TryLocateExecutable_ExistsMultiple_ReturnTrueAndF
70
70
Assert . Equal ( expectedPath , actualPath ) ;
71
71
}
72
72
73
- [ PlatformFact ( Platforms . Posix ) ]
73
+ [ PosixFact ]
74
74
public void PosixEnvironment_TryLocateExecutable_NotExists_ReturnFalse ( )
75
75
{
76
76
var fs = new TestFileSystem ( ) ;
@@ -83,7 +83,7 @@ public void PosixEnvironment_TryLocateExecutable_NotExists_ReturnFalse()
83
83
Assert . Null ( actualPath ) ;
84
84
}
85
85
86
- [ PlatformFact ( Platforms . Posix ) ]
86
+ [ PosixFact ]
87
87
public void PosixEnvironment_TryLocateExecutable_Exists_ReturnTrueAndPath ( )
88
88
{
89
89
string expectedPath = "/usr/local/bin/foo" ;
@@ -103,7 +103,7 @@ public void PosixEnvironment_TryLocateExecutable_Exists_ReturnTrueAndPath()
103
103
Assert . Equal ( expectedPath , actualPath ) ;
104
104
}
105
105
106
- [ PlatformFact ( Platforms . Posix ) ]
106
+ [ PosixFact ]
107
107
public void PosixEnvironment_TryLocateExecutable_ExistsMultiple_ReturnTrueAndFirstPath ( )
108
108
{
109
109
string expectedPath = "/home/john.doe/bin/foo" ;
@@ -125,7 +125,7 @@ public void PosixEnvironment_TryLocateExecutable_ExistsMultiple_ReturnTrueAndFir
125
125
Assert . Equal ( expectedPath , actualPath ) ;
126
126
}
127
127
128
- [ PlatformFact ( Platforms . MacOS ) ]
128
+ [ MacOSFact ]
129
129
public void MacOSEnvironment_TryLocateExecutable_Paths_Are_Ignored ( )
130
130
{
131
131
List < string > pathsToIgnore = new List < string > ( )
@@ -150,8 +150,8 @@ public void MacOSEnvironment_TryLocateExecutable_Paths_Are_Ignored()
150
150
Assert . True ( actualResult ) ;
151
151
Assert . Equal ( expectedPath , actualPath ) ;
152
152
}
153
-
154
- [ PlatformFact ( Platforms . Posix ) ]
153
+
154
+ [ PosixFact ]
155
155
public void PosixEnvironment_SetEnvironmentVariable_Sets_Expected_Value ( )
156
156
{
157
157
var variable = "FOO_BAR" ;
@@ -166,8 +166,8 @@ public void PosixEnvironment_SetEnvironmentVariable_Sets_Expected_Value()
166
166
Assert . Contains ( env . Variables , item
167
167
=> item . Key . Equals ( variable ) && item . Value . Equals ( value ) ) ;
168
168
}
169
-
170
- [ PlatformFact ( Platforms . Windows ) ]
169
+
170
+ [ WindowsFact ]
171
171
public void WindowsEnvironment_SetEnvironmentVariable_Sets_Expected_Value ( )
172
172
{
173
173
var variable = "FOO_BAR" ;
0 commit comments