public void No_Match_When_Valid_And_Name_Is_Null() {
            var filter = new AssemblyFilter();
            filter.AddFilter("mscorlib");

            bool result = filter.Match(null);
            Assert.IsFalse(result);
        }
        public void No_Match_When_No_Valid_Name_Is_Added() {
            var filter = new AssemblyFilter();
            filter.AddFilter("System.Web");

            bool result = filter.Match(typeof (string).Assembly.FullName);
            Assert.IsFalse(result);
        }
        public void Match_When_Valid_Name_Is_Added() {
            var filter = new AssemblyFilter();
            filter.AddFilter("mscorlib");

            bool result = filter.Match(typeof (string).Assembly.FullName);
            Assert.IsTrue(result);
        }
        public void No_Match_When_Name_Is_Added_And_List_Is_Cleared() {
            var filter = new AssemblyFilter();
            filter.AddFilter("mscorlib");

            filter.Clear();

            bool result = filter.Match(typeof (string).Assembly.FullName);
            Assert.IsFalse(result);
        }
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="filter"></param>
 public AllViewEngineRegistry(AssemblyFilter filter) {
     Filter = filter;
 }
 /// <summary>
 /// Creates an instance with the specified <seealso cref="IServiceLocator"/> implementation.
 /// </summary>
 /// <param name="locator"></param>
 /// <param name="filter"></param>
 public DefaultAutoRegistrator(IServiceLocator locator, AssemblyFilter filter) {
     ServiceLocator = locator;
     Filter = filter;
 }
 public void Can_Create_Valid_Instance() {
     var filter = new AssemblyFilter();
     Assert.IsNotNull(filter);
 }
        public void No_Match_When_Empty_And_Name_Is_Null() {
            var filter = new AssemblyFilter();
            bool result = filter.Match(null);

            Assert.IsFalse(result);
        }