public void SetPointsTest() { CrossSection_Accessor target = new CrossSection_Accessor(); HydroNumerics.Geometry.IXYPoint p1 = new HydroNumerics.Geometry.XYPoint(0, 0); HydroNumerics.Geometry.IXYPoint p2 = new HydroNumerics.Geometry.XYPoint(10, 2); target.SetPoints(p1, p2, 0, 10, 5); Assert.AreEqual(5, target.MidStreamLocation.X); Assert.AreEqual(1, target.MidStreamLocation.Y); }
public void SetPointsTest() { CrossSection_Accessor target = new CrossSection_Accessor(); HydroNumerics.Geometry.IXYPoint p1 = new HydroNumerics.Geometry.XYPoint(0, 0); HydroNumerics.Geometry.IXYPoint p2 = new HydroNumerics.Geometry.XYPoint(10, 2); target.SetPoints(p1, p2, 0, 10, 5); Assert.AreEqual(5, target.MidStreamLocation.X); Assert.AreEqual(1, target.MidStreamLocation.Y); }