diff --git a/Tests/Testably.Abstractions.Tests/FileSystem/Path/GetFullPathTests.cs b/Tests/Testably.Abstractions.Tests/FileSystem/Path/GetFullPathTests.cs index cccbb7527..6c2d2025c 100644 --- a/Tests/Testably.Abstractions.Tests/FileSystem/Path/GetFullPathTests.cs +++ b/Tests/Testably.Abstractions.Tests/FileSystem/Path/GetFullPathTests.cs @@ -37,7 +37,9 @@ public void Skip.IfNot(Test.RunsOnWindows); string currentDirectory = FileSystem.Directory.GetCurrentDirectory(); - string otherDrive = currentDirectory.Substring(0, 1) == "C" ? "D" : "C"; + string otherDrive = currentDirectory + .Substring(0,1) + .Equals("c", StringComparison.OrdinalIgnoreCase) ? "D" : "C"; string input = $"{otherDrive}:test.txt"; string expectedFullPath = $@"{otherDrive}:\test.txt";