public void SetValuesOf_GetOnlyProperty_PropertyIsNotSet() { var myClass = new MyClassWithGetOnlyPropertySpy(); propertyNamer.SetValuesOf(myClass); Assert.That(myClass.IsSet, Is.False); }
public void SetValuesOf_GetOnlyProperty_PropertyIsNotSet() { var myClass = new MyClassWithGetOnlyPropertySpy(); propertyNamer.SetValuesOf(myClass); myClass.IsSet.ShouldBeFalse(); }
public void SetValuesOfAllIn_ListOfTypeWithPrivateSetOnlyProperty_ValueIsNotSet() { var privateSetOnlyType = new MyClassWithGetOnlyPropertySpy(); propertyNamer.SetValuesOfAllIn(new List <MyClassWithGetOnlyPropertySpy> { privateSetOnlyType }); Assert.That(privateSetOnlyType.IsSet, Is.False); }