/// <summary> /// Initializes a new instance of the <see cref="DikeProfileData"/> class. /// </summary> public DikeProfileData() { Orientation = double.NaN; DamHeight = double.NaN; DikeHeight = double.NaN; ForeshoreGeometry = new RoughnessPoint[0]; DikeGeometry = new RoughnessPoint[0]; }
public void Constructor_ExpectedValues() { // Setup const double roughness = 1.23456789; var point = new Point2D(1.1826, 2.2692); // Call var roughnessPoint = new RoughnessPoint(point, roughness); // Assert Assert.AreEqual(new Point2D(1.18, 2.27), roughnessPoint.Point); Assert.AreEqual(2, roughnessPoint.Roughness.NumberOfDecimalPlaces); Assert.AreEqual(roughness, roughnessPoint.Roughness, roughnessPoint.Roughness.GetAccuracy()); }
public SerializableRoughnessPoint(RoughnessPoint point) { x = point.Point.X; y = point.Point.Y; roughness = point.Roughness; }