Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.TestUtil.Test/ExportableFailureMechanismSectionTestFactoryTest.cs
===================================================================
diff -u
--- Ringtoets/Integration/test/Ringtoets.Integration.IO.TestUtil.Test/ExportableFailureMechanismSectionTestFactoryTest.cs (revision 0)
+++ Ringtoets/Integration/test/Ringtoets.Integration.IO.TestUtil.Test/ExportableFailureMechanismSectionTestFactoryTest.cs (revision b2c1971e9e3264afd7b55e68f0de2ca589e3f750)
@@ -0,0 +1,26 @@
+using Core.Common.Base.Geometry;
+using NUnit.Framework;
+using Ringtoets.Integration.IO.Assembly;
+
+namespace Ringtoets.Integration.IO.TestUtil.Test
+{
+ [TestFixture]
+ public class ExportableFailureMechanismSectionTestFactoryTest
+ {
+ [Test]
+ public void CreateFailureMechanismSection_Always_ReturnsFailureMechanismSection()
+ {
+ // Call
+ ExportableFailureMechanismSection section = ExportableFailureMechanismSectionTestFactory.CreatExportableFailureMechanismSection();
+
+ // Assert
+ CollectionAssert.AreEqual(new[]
+ {
+ new Point2D(1, 1),
+ new Point2D(2, 2)
+ }, section.Geometry);
+ Assert.AreEqual(1, section.StartDistance);
+ Assert.AreEqual(2, section.EndDistance);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.TestUtil.Test/ExportableSectionAssemblyResultTestFactoryTest.cs
===================================================================
diff -u
--- Ringtoets/Integration/test/Ringtoets.Integration.IO.TestUtil.Test/ExportableSectionAssemblyResultTestFactoryTest.cs (revision 0)
+++ Ringtoets/Integration/test/Ringtoets.Integration.IO.TestUtil.Test/ExportableSectionAssemblyResultTestFactoryTest.cs (revision b2c1971e9e3264afd7b55e68f0de2ca589e3f750)
@@ -0,0 +1,33 @@
+using NUnit.Framework;
+using Ringtoets.AssemblyTool.Data;
+using Ringtoets.Integration.IO.Assembly;
+
+namespace Ringtoets.Integration.IO.TestUtil.Test
+{
+ [TestFixture]
+ public class ExportableSectionAssemblyResultTestFactoryTest
+ {
+ [Test]
+ public void CreateSectionAssemblyResult_Always_ReturnsSectionAssemblyResult()
+ {
+ // Call
+ ExportableSectionAssemblyResult result = ExportableSectionAssemblyResultTestFactory.CreateSectionAssemblyResult();
+
+ // Assert
+ Assert.AreEqual(ExportableAssemblyMethod.WBI0T1, result.AssemblyMethod);
+ Assert.AreEqual(FailureMechanismSectionAssemblyCategoryGroup.IIIv, result.AssemblyCategory);
+ }
+
+ [Test]
+ public void CreateSectionAssemblyResultWithProbability_Always_ReturnsSectionAssemblyResult()
+ {
+ // Call
+ ExportableSectionAssemblyResultWithProbability result = ExportableSectionAssemblyResultTestFactory.CreateSectionAssemblyResultWithProbability();
+
+ // Assert
+ Assert.AreEqual(ExportableAssemblyMethod.WBI0T1, result.AssemblyMethod);
+ Assert.AreEqual(FailureMechanismSectionAssemblyCategoryGroup.IIIv, result.AssemblyCategory);
+ Assert.AreEqual(0.75, result.Probability);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.TestUtil.Test/Ringtoets.Integration.IO.TestUtil.Test.csproj
===================================================================
diff -u -r65f4e1eaedf949add75842dbf6b4fa1dde3af42a -rb2c1971e9e3264afd7b55e68f0de2ca589e3f750
--- Ringtoets/Integration/test/Ringtoets.Integration.IO.TestUtil.Test/Ringtoets.Integration.IO.TestUtil.Test.csproj (.../Ringtoets.Integration.IO.TestUtil.Test.csproj) (revision 65f4e1eaedf949add75842dbf6b4fa1dde3af42a)
+++ Ringtoets/Integration/test/Ringtoets.Integration.IO.TestUtil.Test/Ringtoets.Integration.IO.TestUtil.Test.csproj (.../Ringtoets.Integration.IO.TestUtil.Test.csproj) (revision b2c1971e9e3264afd7b55e68f0de2ca589e3f750)
@@ -1,22 +1,53 @@
+
{C4EE67E7-6E00-4735-9439-32D9B2054E40}
Ringtoets.Integration.IO.TestUtil.Test
Ringtoets.Integration.IO.TestUtil.Test
+
+ ..\..\..\..\packages\NUnit.3.10.1\lib\net40\nunit.framework.dll
+
+
+
Copying.licenseheader
+
+
+
+ {3BBFD65B-B277-4E50-AE6D-BD24C3434609}
+ Core.Common.Base
+
+
+ {420ED9C3-0C33-47EA-B893-121A9C0DB4F1}
+ Ringtoets.AssemblyTool.Data
+
+
+ {d693d18e-c257-4fde-96bc-f6e6fb043ecf}
+ Ringtoets.Integration.IO
+
+
+ {1C002B07-DDF6-4849-B8ED-551163AC9423}
+ Ringtoets.Integration.IO.TestUtil
+
+
+
+
+ This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
+
+
+
\ No newline at end of file
Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.TestUtil.Test/packages.config
===================================================================
diff -u
--- Ringtoets/Integration/test/Ringtoets.Integration.IO.TestUtil.Test/packages.config (revision 0)
+++ Ringtoets/Integration/test/Ringtoets.Integration.IO.TestUtil.Test/packages.config (revision b2c1971e9e3264afd7b55e68f0de2ca589e3f750)
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.TestUtil/ExportableFailureMechanismSectionTestFactory.cs
===================================================================
diff -u
--- Ringtoets/Integration/test/Ringtoets.Integration.IO.TestUtil/ExportableFailureMechanismSectionTestFactory.cs (revision 0)
+++ Ringtoets/Integration/test/Ringtoets.Integration.IO.TestUtil/ExportableFailureMechanismSectionTestFactory.cs (revision b2c1971e9e3264afd7b55e68f0de2ca589e3f750)
@@ -0,0 +1,25 @@
+using Core.Common.Base.Geometry;
+using Ringtoets.Integration.IO.Assembly;
+
+namespace Ringtoets.Integration.IO.TestUtil
+{
+ ///
+ /// Factory that creates simple instances
+ /// which can be used for testing.
+ ///
+ public static class ExportableFailureMechanismSectionTestFactory
+ {
+ ///
+ /// Creates a default .
+ ///
+ /// A default .
+ public static ExportableFailureMechanismSection CreatExportableFailureMechanismSection()
+ {
+ return new ExportableFailureMechanismSection(new []
+ {
+ new Point2D(1, 1),
+ new Point2D(2, 2)
+ }, 1, 2);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.TestUtil/ExportableSectionAssemblyResultTestFactory.cs
===================================================================
diff -u
--- Ringtoets/Integration/test/Ringtoets.Integration.IO.TestUtil/ExportableSectionAssemblyResultTestFactory.cs (revision 0)
+++ Ringtoets/Integration/test/Ringtoets.Integration.IO.TestUtil/ExportableSectionAssemblyResultTestFactory.cs (revision b2c1971e9e3264afd7b55e68f0de2ca589e3f750)
@@ -0,0 +1,33 @@
+using Ringtoets.AssemblyTool.Data;
+using Ringtoets.Integration.IO.Assembly;
+
+namespace Ringtoets.Integration.IO.TestUtil
+{
+ ///
+ /// Factory that creates simple exportable failure mechanism section result instances
+ /// which can be used for testing.
+ ///
+ public static class ExportableSectionAssemblyResultTestFactory
+ {
+ ///
+ /// Creates a default .
+ ///
+ /// A default .
+ public static ExportableSectionAssemblyResult CreateSectionAssemblyResult()
+ {
+ return new ExportableSectionAssemblyResult(ExportableAssemblyMethod.WBI0T1,
+ FailureMechanismSectionAssemblyCategoryGroup.IIIv);
+ }
+
+ ///
+ /// Creates a default .
+ ///
+ /// A default .
+ public static ExportableSectionAssemblyResultWithProbability CreateSectionAssemblyResultWithProbability()
+ {
+ return new ExportableSectionAssemblyResultWithProbability(ExportableAssemblyMethod.WBI0T1,
+ FailureMechanismSectionAssemblyCategoryGroup.IIIv,
+ 0.75);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.TestUtil/Ringtoets.Integration.IO.TestUtil.csproj
===================================================================
diff -u -r65f4e1eaedf949add75842dbf6b4fa1dde3af42a -rb2c1971e9e3264afd7b55e68f0de2ca589e3f750
--- Ringtoets/Integration/test/Ringtoets.Integration.IO.TestUtil/Ringtoets.Integration.IO.TestUtil.csproj (.../Ringtoets.Integration.IO.TestUtil.csproj) (revision 65f4e1eaedf949add75842dbf6b4fa1dde3af42a)
+++ Ringtoets/Integration/test/Ringtoets.Integration.IO.TestUtil/Ringtoets.Integration.IO.TestUtil.csproj (.../Ringtoets.Integration.IO.TestUtil.csproj) (revision b2c1971e9e3264afd7b55e68f0de2ca589e3f750)
@@ -11,11 +11,27 @@
+
+
Copying.licenseheader
+
+
+ {3BBFD65B-B277-4E50-AE6D-BD24C3434609}
+ Core.Common.Base
+
+
+ {420ED9C3-0C33-47EA-B893-121A9C0DB4F1}
+ Ringtoets.AssemblyTool.Data
+
+
+ {D693D18E-C257-4FDE-96BC-F6E6FB043ECF}
+ Ringtoets.Integration.IO
+
+
\ No newline at end of file