public void FinalPathNameFromPath() { string tempPath = FileMethods.GetTempPath(); string lowerTempPath = tempPath.ToLowerInvariant(); tempPath.Should().NotBe(lowerTempPath); FileMethods.GetFinalPathName(lowerTempPath, 0, false).Should().Be(@"\\?\" + Paths.TrimTrailingSeparators(tempPath)); }