Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/TestForeshoreProfileTest.cs =================================================================== diff -u -rad3fbe53d3f4514a399873cce5e09006789c63c5 -ra2eb198a93d224a701f3fa4d6a68023e22ebcd79 --- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/TestForeshoreProfileTest.cs (.../TestForeshoreProfileTest.cs) (revision ad3fbe53d3f4514a399873cce5e09006789c63c5) +++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/TestForeshoreProfileTest.cs (.../TestForeshoreProfileTest.cs) (revision a2eb198a93d224a701f3fa4d6a68023e22ebcd79) @@ -97,5 +97,27 @@ Assert.AreEqual(0.0, profile.Orientation.Value); Assert.AreEqual(new Point2D(0, 0), profile.WorldReferencePoint); } + + [Test] + public void Constructor_WithGeometry_ReturnsForeshoreProfileWithEmptyNameAndOnePointAtOriginAndGeometry() + { + // Setup + var geometry = new[] + { + new Point2D(0, 0), + new Point2D(1, 1) + }; + + // Call + ForeshoreProfile profile = new TestForeshoreProfile(geometry); + + // Assert + CollectionAssert.AreEqual(geometry, profile.Geometry); + Assert.IsNull(profile.Name); + Assert.IsFalse(profile.HasBreakWater); + Assert.AreEqual(0.0, profile.X0); + Assert.AreEqual(0.0, profile.Orientation.Value); + Assert.AreEqual(new Point2D(0, 0), profile.WorldReferencePoint); + } } } \ No newline at end of file