Skip to content

Commit

Permalink
Update test for artifact directory
Browse files Browse the repository at this point in the history
  • Loading branch information
kuiperzone committed May 18, 2023
1 parent 24b24ea commit 5967326
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions AvantGarde.Test/Projects/DotnetProjectTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ public void Refresh_Artifacts()

// Create assembly under artifacts
// debug_net8.0/projectName.dll
// .artifacts/bin/debug/projectName.dll
// .artifacts/bin/[projectName]/debug_net8.0/projectName.dll
var artDir = Path.Combine(solDir, ".artifacts", "bin", "debug");
// artifacts/bin/debug/projectName.dll
// artifacts/bin/[projectName]/debug_net8.0/projectName.dll
var artDir = Path.Combine(solDir, "artifacts", "bin", "debug");
Directory.CreateDirectory(artDir);
path = CreateFileContent(Path.Combine(artDir, "Name.Test.dll"), "Dummy");

Expand All @@ -163,7 +163,7 @@ public void Refresh_Artifacts()

// New location
Directory.Delete(artDir, true);
artDir = Path.Combine(solDir, ".artifacts", "bin", "debug_net6.0");
artDir = Path.Combine(solDir, "artifacts", "bin", "debug_net6.0");

Directory.CreateDirectory(artDir);
path = CreateFileContent(Path.Combine(artDir, "Name.Test.dll"), "Dummy");
Expand All @@ -173,7 +173,7 @@ public void Refresh_Artifacts()

// New location
Directory.Delete(artDir, true);
artDir = Path.Combine(solDir, ".artifacts", "bin", "Name.Test", "debug_net6.0");
artDir = Path.Combine(solDir, "artifacts", "bin", "Name.Test", "debug_net6.0");
Directory.CreateDirectory(artDir);
path = CreateFileContent(Path.Combine(artDir, "Name.Test.dll"), "Dummy");

Expand All @@ -182,7 +182,7 @@ public void Refresh_Artifacts()

// New location
Directory.Delete(artDir, true);
artDir = Path.Combine(solDir, ".artifacts/bin/Name.Test/debug/net6.0");
artDir = Path.Combine(solDir, "artifacts/bin/Name.Test/debug/net6.0");
Directory.CreateDirectory(artDir);
path = CreateFileContent(Path.Combine(artDir, "Name.Test.dll"), "Dummy");

Expand Down

0 comments on commit 5967326

Please sign in to comment.