Use ICheckbox for toggle switch cast in tests

- Issue MatterHackers/MCCentral#3123
Investigate DualExtrusionShowsCorrectHotendData failure
This commit is contained in:
John Lewin 2018-04-13 17:10:31 -07:00
parent 11a68c1457
commit 14cc09b7cc

View file

@ -221,7 +221,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
Assert.AreEqual(0, (int)emulator.CurrentExtruder.TargetTemperature);
// and the heat toggle is showing on
CheckBox heatToggle = testRunner.GetWidgetByName("Toggle Heater", out _) as CheckBox;
ICheckbox heatToggle = testRunner.GetWidgetByName("Toggle Heater", out _) as ICheckbox;
Assert.IsFalse(heatToggle.Checked);
// turn it on