Exemplo n.º 1
0
        public void Match_When_No_Valid_Name_Is_Added()
        {
            var filter = new CommonAssemblyFilter();

            filter.AddFilter("System.Web");

            bool result = filter.Match(typeof(string).Assembly.FullName);

            Assert.IsTrue(result);
        }
Exemplo n.º 2
0
        public void No_Match_When_Valid_And_Name_Is_Null()
        {
            var filter = new CommonAssemblyFilter();

            filter.AddFilter("mscorlib");

            bool result = filter.Match(null);

            Assert.IsFalse(result);
        }
Exemplo n.º 3
0
        public void No_Match_When_Name_Is_Added_And_List_Is_Cleared()
        {
            var filter = new CommonAssemblyFilter();

            filter.AddFilter("mscorlib");

            filter.Clear();

            bool result = filter.Match(typeof(string).Assembly.FullName);

            Assert.IsFalse(result);
        }