Exemple #1
0
        public void AssumePropIsSetWhenNoPropDefinedOnEmptyNonNullObject()
        {
            var list = GetAttribs(typeof(NoPropsSpecified));

            var inst = new NoPropsSpecified();

            Assert.True(list.All((x) => x.IsPropSet(typeof(NoPropsSpecified), inst)));
        }
Exemple #2
0
        public void AssumePropIsSetWhenNoPropDefinedOnPopulatedNonNullObject()
        {
            var list = GetAttribs(typeof(NoPropsSpecified));

            var inst = new NoPropsSpecified {
                prop1 = "foo", prop2 = "bar"
            };

            Assert.True(list.All((x) => x.IsPropSet(typeof(NoPropsSpecified), inst)));
        }