Ejemplo n.º 1
0
        private static PipingPoint CreatePipingPointOfType(Point2D projectedPoint, PipingCharacteristicPointType pointType)
        {
            var pipingPoint = new PipingPoint(projectedPoint.X, 0.0, projectedPoint.Y)
            {
                Type = pointType
            };

            return(pipingPoint);
        }
        private void AssertPointsAreEqual(Point3D point, PipingPoint otherPoint)
        {
            if (point == null)
            {
                Assert.IsNull(otherPoint);
                return;
            }

            if (otherPoint == null)
            {
                Assert.Fail("Expected value for otherPoint.");
            }

            Assert.AreEqual(point.X, otherPoint.X);
            Assert.AreEqual(point.Y, otherPoint.Y);
            Assert.AreEqual(point.Z, otherPoint.Z);
        }