public void AccelerationTimedViewModel_SliderValueChanged_ChangesZValuesCorrectly() { var data = Factories.GetAccelerationData(); var model = new AccelerationTimedViewModel(data); model.SliderValueChanged(2); Assert.AreEqual(15f, model.LValLR); Assert.AreEqual(0f, model.RValLR); Assert.AreEqual("Left/Right: 15 m/s^2", model.LRText); }
public void AccelerationTimedViewModel_SliderValueChanged_ChangesXValuesCorrectly() { var data = Factories.GetAccelerationData(); var model = new AccelerationTimedViewModel(data); model.SliderValueChanged(2); Assert.AreEqual(15f, model.LValFB); Assert.AreEqual(0f, model.RValFB); Assert.AreEqual("Forwards/Backwards: 15 m/s^2", model.FBText); }
private void slValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e) { model.SliderValueChanged((int)slValue.Value); }