public void ChangeDimensions() { Assume.That(_BoxPanel, Is.Not.Null); Assume.That(_Viewport, Is.Not.Null); // Set new values _BoxPanel.EnterValue("BoxLength", 3.0); _BoxPanel.EnterValue("BoxWidth", 7.0); _BoxPanel.EnterValue("BoxHeight", 2.0); Assert.AreEqual(3.0, Pipe.GetValue <double>("$Selected.Shape.DimensionX")); Assert.AreEqual(7.0, Pipe.GetValue <double>("$Selected.Shape.DimensionY")); Assert.AreEqual(2.0, Pipe.GetValue <double>("$Selected.Shape.DimensionZ")); // Deselect _Viewport.ClickRelative(0.9, 0.5); Assume.That(MainWindow.PropertyView.FindPanelByClass("BoxPropertyPanel"), Is.Null); // Reselect _Viewport.ClickRelative(0.5, 0.5); _BoxPanel = MainWindow.PropertyView.FindPanelByClass("BoxPropertyPanel"); Assert.That(_BoxPanel, Is.Not.Null); // Check Values Assert.That(_BoxPanel.GetValue <double>("BoxLength"), Is.EqualTo(3.0)); Assert.That(_BoxPanel.GetValue <double>("BoxWidth"), Is.EqualTo(7.0)); Assert.That(_BoxPanel.GetValue <double>("BoxHeight"), Is.EqualTo(2.0)); }
public void ChangeDimensions() { Assume.That(_CylinderPanel, Is.Not.Null); // Set new values _CylinderPanel.EnterValue("CylinderRadius", 3.0); _CylinderPanel.EnterValue("CylinderHeight", 2.0); _CylinderPanel.EnterValue("CylinderSegment", 180.0); Assert.AreEqual(3.0, Pipe.GetValue <double>("$Selected.Shape.Radius")); Assert.AreEqual(2.0, Pipe.GetValue <double>("$Selected.Shape.Height")); Assert.AreEqual(180.0, Pipe.GetValue <double>("$Selected.Shape.SegmentAngle")); }