public void Execute(IPlatformFactory factory, ITestLogger logger) { MgGeometryFactory gf = new MgGeometryFactory(); MgCoordinateXY coord = gf.CreateCoordinateXY(100, 100) as MgCoordinateXY; Assert.AreEqual(100, coord.X); Assert.AreEqual(100, coord.Y); MgCoordinate coord2 = coord; Assert.AreEqual(100, coord2.X); Assert.AreEqual(100, coord2.Y); }
public void Execute(IPlatformFactory factory, ITestLogger logger) { MgGeometryFactory gf = new MgGeometryFactory(); MgCoordinateXY start = gf.CreateCoordinateXY(0, 0) as MgCoordinateXY; MgCoordinateXY end = gf.CreateCoordinateXY(10, 10) as MgCoordinateXY; MgCoordinateXY control = gf.CreateCoordinateXY(5, 5) as MgCoordinateXY; MgArcSegment arcSegment = gf.CreateArcSegment(start, end, control); Assert.AreEqual(MgGeometryComponentType.ArcSegment, arcSegment.ComponentType); Assert.AreEqual(control.ToString(), arcSegment.ControlCoordinate.ToString()); Assert.AreEqual(start.ToString(), arcSegment.StartCoordinate.ToString()); Assert.AreEqual(end.ToString(), arcSegment.EndCoordinate.ToString()); }