public void IntegerSliderMaxValue() { var integerSliderNode = new IntegerSlider() { Value = 500 }; integerSliderNode.UpdateValue("Value", "1000", null); Assert.AreEqual( 1000, integerSliderNode.Max); integerSliderNode.UpdateValue("Value", "-1", null); Assert.AreEqual( -1, integerSliderNode.Min); }
public void SliderCanNotBeSetGreaterThanMaxIntValue() { var slider = new IntegerSlider(); Assert.NotNull(slider); var param = new UpdateValueParams("Value", "2147483648"); slider.UpdateValue(param); Assert.AreEqual(slider.Value, Int32.MaxValue); }
public void SliderMinResetsToIntMin() { var slider = new IntegerSlider(); Assert.NotNull(slider); var param = new UpdateValueParams("Min", "-2147483649"); slider.UpdateValue(param); Assert.AreEqual(slider.Min, Int32.MinValue); }
public void SliderMaxResetsToIntMax() { var slider = new IntegerSlider(); Assert.NotNull(slider); var param = new UpdateValueParams("Max", "2147483648"); slider.UpdateValue(param); Assert.AreEqual(slider.Max, Int32.MaxValue); }
public void SliderCanNotBeSetLessThanMinIntValue() { var slider = new IntegerSlider(); Assert.NotNull(slider); var param = new UpdateValueParams("Value", "-2147483649"); slider.UpdateValue(param); Assert.AreEqual(slider.Value, Int32.MinValue); }
public void SliderCanNotBeSetLessThanMinIntValue() { var slider = new IntegerSlider(); Assert.NotNull(slider); var param = new UpdateValueParams("Value", "-2147483649"); slider.UpdateValue(param); Assert.AreEqual(slider.Value, Int32.MinValue); }
public void SliderCanNotBeSetGreaterThanMaxIntValue() { var slider = new IntegerSlider(); Assert.NotNull(slider); var param = new UpdateValueParams("Value", "2147483648"); slider.UpdateValue(param); Assert.AreEqual(slider.Value, Int32.MaxValue); }
public void SliderMinResetsToIntMin() { var slider = new IntegerSlider(); Assert.NotNull(slider); var param = new UpdateValueParams("Min", "-2147483649"); slider.UpdateValue(param); Assert.AreEqual(slider.Min, Int32.MinValue); }
public void SliderMaxResetsToIntMax() { var slider = new IntegerSlider(); Assert.NotNull(slider); var param = new UpdateValueParams("Max", "2147483648"); slider.UpdateValue(param); Assert.AreEqual(slider.Max, Int32.MaxValue); }