Skip to content

Commit

Permalink
test data fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-martinsmith committed Aug 21, 2024
1 parent 197f60e commit 632df46
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/DNX.Extensions.Tests/IO/FileInfoExtensionsTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using DNX.Extensions.IO;
using DNX.Extensions.Strings;
using FluentAssertions;
using Xunit;
using Xunit.Abstractions;
Expand Down Expand Up @@ -130,7 +131,7 @@ public static TheoryData<string, string, string> GetRelativeFileName_Data()
{ Path.Combine(DriveRoot1, "Temp", "abcdefg", "dir3", "file1.tf"), Path.Combine(DriveRoot1, "Temp", "abcdefg", "dir3"), "file1.tf" },
{ Path.Combine(DriveRoot1, "Temp", "folder1", "file.txt"), Path.Combine(DriveRoot2, "folder2"),
Configuration.EnvironmentConfig.IsLinuxStyleFileSystem
? Path.Combine("..", "..", DriveRoot1, "Temp", "folder1", "file.txt")
? Path.Combine(DriveRoot1, "Temp", "folder1", "file.txt").EnsureStartsWith(Path.Combine("..", ".."))
: Path.Combine(DriveRoot1, "Temp", "folder1", "file.txt")
},
{ Path.Combine(DriveRoot1, "Temp", "folder1", "file.txt"), Path.Combine(DriveRoot1, "Temp", "folder2"), Path.Combine("..", "folder1", "file.txt") },
Expand All @@ -147,7 +148,7 @@ public static TheoryData<string, string, string> GetRelativeFilePath_Data()
{ Path.Combine(DriveRoot1, "Temp", "folder1", "file.txt"), Path.Combine(DriveRoot1, "Temp", "folder2"), Path.Combine("..", "folder1") },
{ Path.Combine(DriveRoot1, "Temp", "folder1", "file.txt"), Path.Combine(DriveRoot2, "folder2"),
Configuration.EnvironmentConfig.IsLinuxStyleFileSystem
? Path.Combine("..", "..", DriveRoot1, "Temp", "folder1")
? Path.Combine(DriveRoot1, "Temp", "folder1").EnsureStartsWith(Path.Combine("..", ".."))
: Path.Combine(DriveRoot1, "Temp", "folder1")
},
};
Expand Down

0 comments on commit 632df46

Please sign in to comment.