コード例 #1
0
        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());
        }