public void TestTriggerWithCustomPrevState() { BindableInt bindableInt = new BindableInt(5); int newValue = bindableInt.Value; int prevValue = bindableInt.Value; bindableInt.OnValueChanged += (n, p) => { newValue = n; prevValue = p; }; bindableInt.Value = 10; Assert.AreEqual(10, newValue); Assert.AreEqual(5, prevValue); bindableInt.TriggerWithPrevious(9); Assert.AreEqual(10, newValue); Assert.AreEqual(9, prevValue); }