public void ExpectFalseWhenNoPropsSetWhenMultiplePropSpecified() { var list = GetAttribs(typeof(TwoPropSpecified)); var inst = new TwoPropSpecified(); Assert.False(list.All((x) => x.IsPropSet(typeof(TwoPropSpecified), inst))); }
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))); }