public void VerifyConflict() { var types = new HashSet <Type> { typeof(string), typeof(Subject) }; var configuration = new ConfigurationContainer(); configuration.EnableImplicitTyping(types) .Type <Subject>() .Name("string"); Assert.Throws <InvalidOperationException>(() => configuration.Create()); }