public void ShouldThrowIfPathIsNull() { // Given, When TestDelegate test = () => NormalizedPath.Collapse(null); // Then Assert.Throws <ArgumentNullException>(test); }
public void ShouldCollapsePath(string fullPath, string expected) { // Given DirectoryPath directoryPath = new DirectoryPath(fullPath); // When string path = NormalizedPath.Collapse(directoryPath); // Then Assert.AreEqual(expected, path); }
public void ShouldCollapseFilePath(string fullPath, string expected) { // Given FilePath filePath = new FilePath(fullPath); // When string path = NormalizedPath.Collapse(filePath); // Then Assert.AreEqual(expected, path); }