示例#1
0
        public void IgnoresSimple()
        {
            var ignoredType  = typeof(IgnoredType);
            var ignoredTypes = IgnoredTypes.Create(new[] { ignoredType });

            Assert.AreEqual(true, ignoredTypes.IsIgnoringType(ignoredType));
            Assert.AreEqual(false, ignoredTypes.IsIgnoringType(typeof(IgnoredGenericType <int>)));
        }
示例#2
0
        public void IgnoresOpenGeneric()
        {
            var ignoredType  = typeof(IgnoredGenericType <>);
            var ignoredTypes = IgnoredTypes.Create(new[] { ignoredType });

            Assert.AreEqual(true, ignoredTypes.IsIgnoringType(ignoredType));
            Assert.AreEqual(true, ignoredTypes.IsIgnoringType(typeof(IgnoredGenericType <double>)));
        }
示例#3
0
        public void IgnoresCollectionTypes(Type type)
        {
            var ignoredTypes = IgnoredTypes.Create(null);

            Assert.AreEqual(true, ignoredTypes.IsIgnoringType(type));
        }