public void IgnoresCertainFoldersByDefault()
 {
     Assert.IsTrue(finder.PathIsIgnored(new DirectoryInfo(Path.Combine(WorkingDirectory, ".svn"))), ".svn folders ignored");
     Assert.IsFalse(finder.PathIsIgnored(new DirectoryInfo(Path.Combine(WorkingDirectory, "doo.svn.wop"))), "don't ignore folders with .svn in the name");
     Assert.IsTrue(finder.PathIsIgnored(new DirectoryInfo(Path.Combine(WorkingDirectory, ".hg"))), ".hg folders ignored");
     Assert.IsFalse(finder.PathIsIgnored(new DirectoryInfo(Path.Combine(WorkingDirectory, "doo.hg.wop"))), "don't ignore folders with .hg in the name");
     Assert.IsTrue(finder.PathIsIgnored(new DirectoryInfo(Path.Combine(WorkingDirectory, ".git"))), ".git folders ignored");
     Assert.IsFalse(finder.PathIsIgnored(new DirectoryInfo(Path.Combine(WorkingDirectory, "doo.git.wop"))), "don't ignore folders with .git in the name");
     Assert.IsTrue(finder.PathIsIgnored(new DirectoryInfo(Path.Combine(WorkingDirectory, "bin"))), "bin folders ignored");
     Assert.IsFalse(finder.PathIsIgnored(new DirectoryInfo(Path.Combine(WorkingDirectory, "obing"))), "don't ignore folders with bin in the name");
     Assert.IsTrue(finder.PathIsIgnored(new DirectoryInfo(Path.Combine(WorkingDirectory, "obj"))), "obj folders ignored");
     Assert.IsFalse(finder.PathIsIgnored(new DirectoryInfo(Path.Combine(WorkingDirectory, "blobjee"))), "don't ignore folders with obj in the name");
 }
Example #2
0
 public void IgnoresCertainFoldersByDefault()
 {
     Assert.That(finder.PathIsIgnored(new DirectoryInfo(@"C:\Folder\.svn")), Is.True, ".svn folders ignored");
     Assert.That(finder.PathIsIgnored(new DirectoryInfo(@"C:\Folder\doo.svn.wop")), Is.False, "don't ignore folders with .svn in the name");
     Assert.That(finder.PathIsIgnored(new DirectoryInfo(@"C:\Folder\.hg")), Is.True, ".hg folders ignored");
     Assert.That(finder.PathIsIgnored(new DirectoryInfo(@"C:\Folder\doo.hg.wop")), Is.False, "don't ignore folders with .hg in the name");
     Assert.That(finder.PathIsIgnored(new DirectoryInfo(@"C:\Folder\.git")), Is.True, ".git folders ignored");
     Assert.That(finder.PathIsIgnored(new DirectoryInfo(@"C:\Folder\doo.git.wop")), Is.False, "don't ignore folders with .git in the name");
     Assert.That(finder.PathIsIgnored(new DirectoryInfo(@"C:\Folder\bin")), Is.True, "bin folders ignored");
     Assert.That(finder.PathIsIgnored(new DirectoryInfo(@"C:\Folder\obing")), Is.False, "don't ignore folders with bin in the name");
     Assert.That(finder.PathIsIgnored(new DirectoryInfo(@"C:\Folder\obj")), Is.True, "obj folders ignored");
     Assert.That(finder.PathIsIgnored(new DirectoryInfo(@"C:\Folder\blobjee")), Is.False, "don't ignore folders with obj in the name");
 }