public void Should_match_format_of_sample_project_file_for_ignored_assembly_patterns()
        {
            var ignored = new IgnoreFilterConfiguration();
            ignored.Patterns.Add(new ConfigurationItem("^System.*"));

            Assert.That(ReadSampleProject().IgnoreAssemblies.Patterns, Is.EquivalentTo(ignored.Patterns));
        }
 public void Should_return_false_if_item_matchs_by_pattern()
 {
     var ignore = new IgnoreFilterConfiguration();
     var name = new AssemblyName("Foo.Bar.Core");
     ignore.Patterns.Add(new ConfigurationItem(".*ar"));
     Assert.IsFalse(IgnoreFilter.From(ignore).Include(name));
 }
        public void Should_match_format_of_sample_project_file_for_ignored_assembly_names()
        {
            var ignored = new IgnoreFilterConfiguration();
            ignored.Names.Add(new ConfigurationItem("mscorlib"));

            Assert.That(ReadSampleProject().IgnoreAssemblies.Names, Is.EquivalentTo(ignored.Names));
        }
 public void Should_return_true_if_no_ignored_items()
 {
     var ignore = new IgnoreFilterConfiguration();
     Assert.IsTrue(IgnoreFilter.From(ignore).Include(new AssemblyName("Foo.Bar.Core")));
 }