Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/more simple extensions #10

Merged
merged 21 commits into from
Aug 21, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test data fixups
cb-martinsmith committed Aug 21, 2024
commit 632df46fb4c9c02880df3272f420e5f112605829
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;
@@ -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") },
@@ -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")
},
};