예제 #1
0
        public void ExpectFalseWhenNoPropsSetWhenMultiplePropSpecified()
        {
            var list = GetAttribs(typeof(TwoPropSpecified));

            var inst = new TwoPropSpecified();

            Assert.False(list.All((x) => x.IsPropSet(typeof(TwoPropSpecified), inst)));
        }
예제 #2
0
        public void ExpectTrueWhenAllPropsSetWhenMultiplePropSpecified()
        {
            var list = GetAttribs(typeof(TwoPropSpecified));

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

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