public void Ray_GetElevationOutsideRayDomain_IsNull() { Ray localRay = new Ray(); localRay.StartPoint = new Point(25.0, 0.0, 25.0); localRay.Slope = new Slope(); localRay.Slope.setFromXY(0, 1); localRay.HorizontalDirection = null; double? actual = localRay.getElevationAlong(25.0); Assert.IsNull(actual); }
public void Ray_GetElevationWhenRayIsVertical_IsNull() { Ray localRay = new Ray(); localRay.StartPoint = new Point(25.0, 0.0, 25.0); localRay.Slope = new Slope(1.0); localRay.HorizontalDirection = null; double? actual = localRay.getElevationAlong(15.0); Assert.IsNull(actual); }
public void Ray_GetElevationInRayDomain_IsCorrect() { Ray localRay = new Ray(); localRay.StartPoint = new Point(25.0, 0.0, 25.0); localRay.Slope = new Slope(1.0); localRay.HorizontalDirection = null; double? actual = localRay.getElevationAlong(35.0); double? expected = 35.0; Assert.AreEqual(expected.ToString(), actual.ToString()); //String act = actual.ToString(); //String exp = expected.ToString(); }