public void OneWayBinding_WithInitialValue_ValueChanged() { var source = new Observable <int>(); var target = new Stub <int>(); source.Value = 5; var binding = target.Bind(source).Property(s => s.Value, t => t.Value, Transmute.Transmuter.Default.GetConverter <int, int>()); Assert.AreEqual(source.Value, target.Value); }
public void OneWayBinding_WithInitialValue_ValueChanged() { var source = new Observable <int>(); var target = new Stub <int>(); source.Value = 5; var binding = target.Bind(source).Property(s => s.Value, t => t.Value, Converters.Identity <int>()); Assert.AreEqual(source.Value, target.Value); }