public void Unproxied_DoesntReportChanges_WhenNoChangesWereMade() { var interceptable = new InterceptableItem(); interceptable.SetDetail("BoolProperty", false, typeof(bool)); interceptable.SetDetail("EnumProperty", TextBoxMode.SingleLine, typeof(TextBoxMode)); interceptable.SetDetail("StringProperty", null, typeof(string)); bool wasChanged = factory.OnSaving(interceptable); Assert.That(wasChanged, Is.False); }
public void Get_BoolProperty() { item.SetDetail("BoolProperty", true, typeof(TextBoxMode)); Assert.That(item.BoolProperty, Is.True); }