public void Test_MapClassesForTypeWithWhereClause_ShouldMapAllClassesForTheTypesAssemblyMatchingClause() { //---------------Set up test pack------------------- Type type = typeof(FakeExtBoShouldBeLoaded); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- ClassDefCol classDefCol = type.MapClasses(type1 => !type1.Name.Contains("OnlyImplementing")); //---------------Test Result ----------------------- classDefCol.ShouldContain(def => def.ClassName == "FakeExtBoShouldBeLoaded"); classDefCol.ShouldNotContain(def => def.ClassName == "FakeExtBoOnlyImplementingInterfaceShouldBeLoaded"); Assert.AreEqual(1, classDefCol.Count); }