public void KnownTypes_GivenFromTypesHasBeenCalled_ReturnsTypesInCollection() { var sourceTypes = new[] { typeof(CompoundModule), typeof(SimpleModule), typeof(ThreeDeepModule) }; var subject = new DetectTypes(); subject.FromTypes(sourceTypes); var knownTypes = subject.KnownTypes(); foreach (var type in sourceTypes) Assert.Contains( type, knownTypes); }