File tree Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Expand file tree Collapse file tree 1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -83,24 +83,13 @@ public void TestCastGlobalVar()
83
83
[ Test ]
84
84
public void BadAssembly ( )
85
85
{
86
- string path ;
86
+ string path = Runtime . Runtime . PythonDLL ;
87
87
if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) )
88
88
{
89
89
path = @"C:\Windows\System32\kernel32.dll" ;
90
90
}
91
- else if ( RuntimeInformation . IsOSPlatform ( OSPlatform . OSX ) )
92
- {
93
- path = "/usr/lib/libc.dylib" ;
94
- }
95
- else if ( RuntimeInformation . IsOSPlatform ( OSPlatform . Linux ) )
96
- {
97
- path = "/usr/lib/locale/locale-archive" ;
98
- }
99
- else
100
- {
101
- Assert . Pass ( "TODO: add bad assembly location for other platforms" ) ;
102
- return ;
103
- }
91
+
92
+ Assert . IsTrue ( File . Exists ( path ) , $ "Test DLL { path } does not exist!") ;
104
93
105
94
string code = $@ "
106
95
import clr
You can’t perform that action at this time.
0 commit comments