Exemplo n.º 1
0
        public void PropertiesAreRegisteredWithGenerics()
        {
            var model = new TestModelWithGenericPropertyRegistrations();

            Assert.IsTrue(model.IsPropertyRegistered("ValueType"));
            Assert.IsTrue(model.IsPropertyRegistered("ValueTypeWithDefaultValue"));
            Assert.IsTrue(model.IsPropertyRegistered("ReferenceType"));
            Assert.IsTrue(model.IsPropertyRegistered("ReferenceTypeWithDefaultValue"));
        }
Exemplo n.º 2
0
        public void PropertiesAreRegisteredWithGenerics()
        {
            var model = new TestModelWithGenericPropertyRegistrations();

            Assert.IsTrue(model.IsPropertyRegistered("ValueType"));
            Assert.IsTrue(model.IsPropertyRegistered("ValueTypeWithDefaultValue"));
            Assert.IsTrue(model.IsPropertyRegistered("ReferenceType"));
            Assert.IsTrue(model.IsPropertyRegistered("ReferenceTypeWithDefaultValue"));
        }