public void TestEmulateChangeValue() { var slider = new WPFSlider(_target); slider.EmulateChangeValue(TestValue); Assert.AreEqual(TestValue, slider.Value); }
public void TestMaximum() { var slider = new WPFSlider(_target); slider.Dynamic().Maximum = (double)10.5; Assert.AreEqual(10.5, slider.Maximum); }
public void TestEmulateChangeValueAsync() { var slider = new WPFSlider(_target); _app[GetType(), "ChangeValueEvent"](slider.AppVar); var async = new Async(); slider.EmulateChangeValue(TestValue, async); new NativeMessageBox(_mainWindow.WaitForNextModal()).EmulateButtonClick("OK"); async.WaitForCompletion(); Assert.AreEqual(TestValue, slider.Value); }
void Assert(string accessPath, WPFSlider slider) => CaptureAdaptor.AddCode($"{accessPath}.Value.Is({slider.Value});");