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