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>))); }
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>))); }
public void IgnoresCollectionTypes(Type type) { var ignoredTypes = IgnoredTypes.Create(null); Assert.AreEqual(true, ignoredTypes.IsIgnoringType(type)); }