@@ -54,22 +54,22 @@ public void TryingToResetNativeLibraryPathAfterLoadedThrows()
54
54
}
55
55
56
56
[ SkippableTheory ]
57
- [ InlineData ( new object [ ] { "x86" } ) ]
58
- [ InlineData ( new object [ ] { "x64" } ) ]
59
- public void LoadFromSpecifiedPath ( string platform )
57
+ [ InlineData ( "x86" ) ]
58
+ [ InlineData ( "x64" ) ]
59
+ public void LoadFromSpecifiedPath ( string architecture )
60
60
{
61
61
Skip . IfNot ( Platform . IsRunningOnNetFramework ( ) , ".NET Framework only test." ) ;
62
62
63
63
var nativeDllFileName = NativeDllName . Name + ".dll" ;
64
64
var testDir = Path . GetDirectoryName ( typeof ( GlobalSettingsFixture ) . Assembly . Location ) ;
65
- var testAppExe = Path . Combine ( testDir , $ "LibGit2Sharp.TestApp.{ platform } .exe") ;
65
+ var testAppExe = Path . Combine ( testDir , $ "LibGit2Sharp.TestApp.{ architecture } .exe") ;
66
66
var tempDir = Path . Combine ( Path . GetTempPath ( ) , Guid . NewGuid ( ) . ToString ( ) ) ;
67
67
var platformDir = Path . Combine ( tempDir , "plat" ) ;
68
68
69
69
try
70
70
{
71
- Directory . CreateDirectory ( Path . Combine ( platformDir , platform ) ) ;
72
- File . Copy ( Path . Combine ( GlobalSettings . NativeLibraryPath , platform , nativeDllFileName ) , Path . Combine ( platformDir , platform , nativeDllFileName ) ) ;
71
+ Directory . CreateDirectory ( Path . Combine ( platformDir , architecture ) ) ;
72
+ File . Copy ( Path . Combine ( GlobalSettings . NativeLibraryPath , architecture , nativeDllFileName ) , Path . Combine ( platformDir , architecture , nativeDllFileName ) ) ;
73
73
74
74
var ( output , exitCode ) = ProcessHelper . RunProcess ( testAppExe , arguments : $@ "{ NativeDllName . Name } ""{ platformDir } """, workingDirectory: tempDir);
75
75
0 commit comments