public void Directory_InvalidArgs_Returnsfalse() { var attr = new DirectoryAttribute(); Assert.IsFalse(attr.IsValid(string.Empty)); Assert.IsFalse(attr.IsValid(null)); }
public void Directory_ValidDirectory_ReturnsTrue() { var attr = new DirectoryAttribute(); bool valid = attr.IsValid(@"C:\Test\Test"); Assert.IsTrue(valid); }
public void Directory_ValidNetworkDirectory_ReturnsTrue() { var attr = new DirectoryAttribute(); bool valid = attr.IsValid(@"\\D076CTS0037235\Test\Test"); Assert.IsTrue(valid); }