public void Matches_File() { var rule = new DirectoryRule(); var file = new FileObject(@"C:\file", null); var result = rule.Matches(file, null); Assert.AreEqual(false, result); }
public void Matches_Drive() { var rule = new DirectoryRule(); var drive = new DriveObject(@"C:", null); var result = rule.Matches(drive, null); Assert.AreEqual(false, result); }
public void Matches_Directory() { var rule = new DirectoryRule(); var directory = new DirectoryObject(@"C:\dir", null); var result = rule.Matches(directory, null); Assert.AreEqual(true, result); }