Skip to content

Commit 245fdab

Browse files
committed
Rename platform to architecture
1 parent 0e295fa commit 245fdab

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

LibGit2Sharp.Tests/GlobalSettingsFixture.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,22 @@ public void TryingToResetNativeLibraryPathAfterLoadedThrows()
5454
}
5555

5656
[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)
6060
{
6161
Skip.IfNot(Platform.IsRunningOnNetFramework(), ".NET Framework only test.");
6262

6363
var nativeDllFileName = NativeDllName.Name + ".dll";
6464
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");
6666
var tempDir = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString());
6767
var platformDir = Path.Combine(tempDir, "plat");
6868

6969
try
7070
{
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));
7373

7474
var (output, exitCode) = ProcessHelper.RunProcess(testAppExe, arguments: $@"{NativeDllName.Name} ""{platformDir}""", workingDirectory: tempDir);
7575

0 commit comments

Comments
 (0)