public void ShouldThrowIfExtensionIsNull() { // Given FilePath path = new FilePath("temp/hello.txt"); // When TestDelegate test = () => path.AppendExtension(null); // Then Assert.Throws<ArgumentNullException>(test); }
public void CanAppendExtensionToPath(string extension, string expected) { // Given FilePath path = new FilePath("temp/hello.txt"); // When path = path.AppendExtension(extension); // Then Assert.AreEqual(expected, path.ToString()); }