public void Should_set_a_writable_property_when_value_inherits_from_property_type() { const string propertyName = "AbstractProperty"; var newValue = new ConcreteSampleType(); var command = new SetPropertyCommand(_object, propertyName, newValue); command.Execute(); Assert.AreEqual(newValue, _object.AbstractProperty); }
public void Should_set_a_writable_property() { const string propertyName = "WritableProperty"; const int newValue = 10; var command = new SetPropertyCommand(_object, propertyName, newValue); command.Execute(); Assert.AreEqual(newValue, _object.WritableProperty); }