예제 #1
0
        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);
        }
예제 #2
0
        public void Matches_Drive()
        {
            var rule  = new DirectoryRule();
            var drive = new DriveObject(@"C:", null);

            var result = rule.Matches(drive, null);

            Assert.AreEqual(false, result);
        }
예제 #3
0
        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);
        }