public void HeightViewModel_SliderValueChanged_ChangesToCorrectValues()
        {
            var data  = Factories.GetHeightData();
            var model = new HeightViewModel(data);

            model.slValueChanged(2);

            Assert.AreEqual(30f, model.HeightValL);
            Assert.AreEqual(0f, model.HeightValR);
            Assert.AreEqual("Height: 30 ft", model.HeightText);
        }
Example #2
0
 private void slValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e)
 {
     model.slValueChanged((int)slValue.Value);
 }