public void WhenBreakoutRelativePath(string input, char directorySeparator, string expected) { PathRef pathRef = new PathRef(input); string normalized = pathRef.NormalizePath(directorySeparator); Assert.That(normalized, Is.EqualTo(expected)); }
public void When_UsingToString(string input) { PathRef pathRef = new PathRef(input); Assert.That(pathRef.ToString(), Is.EqualTo(pathRef.NormalizePath())); }
public void When_NormalizingAsUnixPath(string input) { PathRef pathRef = new PathRef(input); Assert.That(pathRef.PosixPath, Is.EqualTo(pathRef.NormalizePath('/'))); }
public void When_NormalizingAsWindowsPath(string input) { PathRef pathRef = new PathRef(input); Assert.That(pathRef.WindowsPath, Is.EqualTo(pathRef.NormalizePath('\\'))); }
public void When_UsingLocalPath(string input) { PathRef pathRef = new PathRef(input); Assert.That(pathRef.LocalPath, Is.EqualTo(pathRef.NormalizePath(Path.DirectorySeparatorChar))); }