Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Point2DCreateExtensionsTest.cs =================================================================== diff -u -r75a219c391144ca71a684f46e96e5d3f0c17f170 -r4bb55feac151da4010e81849de3103327f7f40ae --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Point2DCreateExtensionsTest.cs (.../Point2DCreateExtensionsTest.cs) (revision 75a219c391144ca71a684f46e96e5d3f0c17f170) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/Point2DCreateExtensionsTest.cs (.../Point2DCreateExtensionsTest.cs) (revision 4bb55feac151da4010e81849de3103327f7f40ae) @@ -40,15 +40,37 @@ var random = new Random(21); double x = random.NextDouble(); double y = random.NextDouble(); - var soilProfile = new Point2D(x, y); + var point = new Point2D(x, y); // Call - var entity = soilProfile.CreateReferenceLinePoint(order); + var entity = point.CreateReferenceLinePoint(order); // Assert Assert.AreEqual(Convert.ToDecimal(x), entity.X); Assert.AreEqual(Convert.ToDecimal(y), entity.Y); Assert.AreEqual(order, entity.Order); } + + [Test] + [TestCase(0)] + [TestCase(100)] + [TestCase(Int32.MaxValue)] + [TestCase(Int32.MinValue)] + public void CreateFailureMechanismSectionPoint_Always_NewFailureMechanismSectionPointEntityWithPropertiesSet(int order) + { + // Setup + var random = new Random(21); + double x = random.NextDouble(); + double y = random.NextDouble(); + var point = new Point2D(x, y); + + // Call + var entity = point.CreateFailureMechanismSectionPoint(order); + + // Assert + Assert.AreEqual(Convert.ToDecimal(x), entity.X); + Assert.AreEqual(Convert.ToDecimal(y), entity.Y); + Assert.AreEqual(order, entity.Order); + } } } \ No newline at end of file