public void BoxMetaToolWithMousePointsTransformationTest() { ShapeBuildHelper.BuildMetaActionTestBox(Setup); // Test that a new node was added Assert.AreEqual(2, Setup.Document.Root.Children.Count); // Check transformations and coordinates of the node var nodeBuilder = new NodeBuilder(Setup.Document.Root.Children[1]); Assert.AreEqual( SetupUtils.CheckNodeTranslationAgainst(nodeBuilder.Node, new Point3D(_testedFirstPoint.Location)), true, "Invalid transform interpreter on Node"); Assert.AreEqual( nodeBuilder[0].TransformedAxis3D.Location.IsEqual(_testedFirstPoint.Location, Precision.Confusion), true, "Invalid first point coordinate"); }
public void BoxMetaToolNodeCreationTest() { ShapeBuildHelper.BuildMetaActionTestBox(Setup); Assert.AreEqual(2, Setup.Document.Root.Children.Count); }