public void ContainsWithInheritance() { var collection = new ClassContextCollection(_ccObjectWithMixin, _ccString, _ccListOfT, _ccListOfString); Assert.That(collection.ContainsWithInheritance(typeof(object)), Is.True); Assert.That(collection.ContainsWithInheritance(typeof(string)), Is.True); Assert.That(collection.ContainsWithInheritance(typeof(ClassContextCollectionTest)), Is.True); Assert.That(collection.ContainsWithInheritance(typeof(int)), Is.True); Assert.That(collection.ContainsWithInheritance(typeof(List <>)), Is.True); Assert.That(collection.ContainsWithInheritance(typeof(List <int>)), Is.True); Assert.That(collection.ContainsWithInheritance(typeof(List <string>)), Is.True); Assert.That(_emptyCollection.ContainsWithInheritance(typeof(int)), Is.False); }