Index: Ringtoets.sln
===================================================================
diff -u -r55c58c2650ad951aed51015bf9509414a21b9b37 -r773d32ba918f32fa586ff74c4fc0dc80e89408c8
--- Ringtoets.sln (.../Ringtoets.sln) (revision 55c58c2650ad951aed51015bf9509414a21b9b37)
+++ Ringtoets.sln (.../Ringtoets.sln) (revision 773d32ba918f32fa586ff74c4fc0dc80e89408c8)
@@ -1770,7 +1770,7 @@
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{614D79BC-9919-4AC8-A2B1-9DD89BCB0653}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Riskeer.AssemblyTool.Data.Test", "Ringtoets\AssemblyTool\test\Ringtoets.AssemblyTool.Data.Test\Riskeer.AssemblyTool.Data.Test.csproj", "{980ADCAB-D8F7-4BE0-A2AF-EFB0A93AD277}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Riskeer.AssemblyTool.Data.Test", "Ringtoets\AssemblyTool\test\Riskeer.AssemblyTool.Data.Test\Riskeer.AssemblyTool.Data.Test.csproj", "{980ADCAB-D8F7-4BE0-A2AF-EFB0A93AD277}"
ProjectSection(ProjectDependencies) = postProject
{C90B77DA-E421-43CC-B82E-529651BC21AC} = {C90B77DA-E421-43CC-B82E-529651BC21AC}
EndProjectSection
Fisheye: Tag 773d32ba918f32fa586ff74c4fc0dc80e89408c8 refers to a dead (removed) revision in file `Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/AssemblyCategoriesInputTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 773d32ba918f32fa586ff74c4fc0dc80e89408c8 refers to a dead (removed) revision in file `Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/AssemblyCategoryTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 773d32ba918f32fa586ff74c4fc0dc80e89408c8 refers to a dead (removed) revision in file `Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/AssessmentSectionAssemblyCategoryGroupTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 773d32ba918f32fa586ff74c4fc0dc80e89408c8 refers to a dead (removed) revision in file `Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/AssessmentSectionAssemblyCategoryTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 773d32ba918f32fa586ff74c4fc0dc80e89408c8 refers to a dead (removed) revision in file `Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/CombinedAssemblyFailureMechanismSectionTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 773d32ba918f32fa586ff74c4fc0dc80e89408c8 refers to a dead (removed) revision in file `Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/CombinedFailureMechanismSectionAssemblyTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 773d32ba918f32fa586ff74c4fc0dc80e89408c8 refers to a dead (removed) revision in file `Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/FailureMechanismAssemblyCategoryGroupTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 773d32ba918f32fa586ff74c4fc0dc80e89408c8 refers to a dead (removed) revision in file `Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/FailureMechanismAssemblyCategoryTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 773d32ba918f32fa586ff74c4fc0dc80e89408c8 refers to a dead (removed) revision in file `Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/FailureMechanismAssemblyTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 773d32ba918f32fa586ff74c4fc0dc80e89408c8 refers to a dead (removed) revision in file `Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/FailureMechanismSectionAssemblyCategoryGroupTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 773d32ba918f32fa586ff74c4fc0dc80e89408c8 refers to a dead (removed) revision in file `Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/FailureMechanismSectionAssemblyCategoryTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 773d32ba918f32fa586ff74c4fc0dc80e89408c8 refers to a dead (removed) revision in file `Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/FailureMechanismSectionAssemblyTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 773d32ba918f32fa586ff74c4fc0dc80e89408c8 refers to a dead (removed) revision in file `Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/Properties/AssemblyInfo.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 773d32ba918f32fa586ff74c4fc0dc80e89408c8 refers to a dead (removed) revision in file `Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/Riskeer.AssemblyTool.Data.Test.csproj'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 773d32ba918f32fa586ff74c4fc0dc80e89408c8 refers to a dead (removed) revision in file `Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.Test/packages.config'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/AssemblyCategoriesInputTest.cs
===================================================================
diff -u
--- Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/AssemblyCategoriesInputTest.cs (revision 0)
+++ Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/AssemblyCategoriesInputTest.cs (revision 773d32ba918f32fa586ff74c4fc0dc80e89408c8)
@@ -0,0 +1,49 @@
+// Copyright (C) Stichting Deltares 2018. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using NUnit.Framework;
+
+namespace Riskeer.AssemblyTool.Data.Test
+{
+ [TestFixture]
+ public class AssemblyCategoriesInputTest
+ {
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ var random = new Random(11);
+ double n = random.NextDouble();
+ double failureMechanismContribution = random.NextDouble();
+ double signalingNorm = random.NextDouble();
+ double lowerLimitNorm = random.NextDouble();
+
+ // Call
+ var input = new AssemblyCategoriesInput(n, failureMechanismContribution, signalingNorm, lowerLimitNorm);
+
+ // Assert
+ Assert.AreEqual(n, input.N);
+ Assert.AreEqual(failureMechanismContribution, input.FailureMechanismContribution, 1e-6);
+ Assert.AreEqual(signalingNorm, input.SignalingNorm);
+ Assert.AreEqual(lowerLimitNorm, input.LowerLimitNorm);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/AssemblyCategoryTest.cs
===================================================================
diff -u
--- Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/AssemblyCategoryTest.cs (revision 0)
+++ Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/AssemblyCategoryTest.cs (revision 773d32ba918f32fa586ff74c4fc0dc80e89408c8)
@@ -0,0 +1,52 @@
+// Copyright (C) Stichting Deltares 2018. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using NUnit.Framework;
+
+namespace Riskeer.AssemblyTool.Data.Test
+{
+ [TestFixture]
+ public class AssemblyCategoryTest
+ {
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ var random = new Random(11);
+
+ double lowerBoundary = random.NextDouble();
+ double upperBoundary = random.NextDouble();
+
+ // Call
+ var category = new SimpleCategory(lowerBoundary, upperBoundary);
+
+ // Assert
+ Assert.AreEqual(lowerBoundary, category.LowerBoundary);
+ Assert.AreEqual(upperBoundary, category.UpperBoundary);
+ }
+
+ private class SimpleCategory : AssemblyCategory
+ {
+ public SimpleCategory(double lowerBoundary, double upperBoundary)
+ : base(lowerBoundary, upperBoundary) {}
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/AssessmentSectionAssemblyCategoryGroupTest.cs
===================================================================
diff -u
--- Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/AssessmentSectionAssemblyCategoryGroupTest.cs (revision 0)
+++ Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/AssessmentSectionAssemblyCategoryGroupTest.cs (revision 773d32ba918f32fa586ff74c4fc0dc80e89408c8)
@@ -0,0 +1,99 @@
+// Copyright (C) Stichting Deltares 2018. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System.Collections.Generic;
+using Core.Common.TestUtil;
+using NUnit.Framework;
+
+namespace Riskeer.AssemblyTool.Data.Test
+{
+ [TestFixture]
+ public class AssessmentSectionAssemblyCategoryGroupTest : EnumWithResourcesDisplayNameTestFixture
+ {
+ protected override IDictionary ExpectedValueForEnumValues
+ {
+ get
+ {
+ return new Dictionary
+ {
+ {
+ AssessmentSectionAssemblyCategoryGroup.None, 1
+ },
+ {
+ AssessmentSectionAssemblyCategoryGroup.NotApplicable, 2
+ },
+ {
+ AssessmentSectionAssemblyCategoryGroup.NotAssessed, 3
+ },
+ {
+ AssessmentSectionAssemblyCategoryGroup.APlus, 4
+ },
+ {
+ AssessmentSectionAssemblyCategoryGroup.A, 5
+ },
+ {
+ AssessmentSectionAssemblyCategoryGroup.B, 6
+ },
+ {
+ AssessmentSectionAssemblyCategoryGroup.C, 7
+ },
+ {
+ AssessmentSectionAssemblyCategoryGroup.D, 8
+ }
+ };
+ }
+ }
+
+ protected override IDictionary ExpectedDisplayNameForEnumValues
+ {
+ get
+ {
+ return new Dictionary
+ {
+ {
+ AssessmentSectionAssemblyCategoryGroup.None, ""
+ },
+ {
+ AssessmentSectionAssemblyCategoryGroup.APlus, "A+"
+ },
+ {
+ AssessmentSectionAssemblyCategoryGroup.A, "A"
+ },
+ {
+ AssessmentSectionAssemblyCategoryGroup.B, "B"
+ },
+ {
+ AssessmentSectionAssemblyCategoryGroup.C, "C"
+ },
+ {
+ AssessmentSectionAssemblyCategoryGroup.D, "D"
+ },
+ {
+ AssessmentSectionAssemblyCategoryGroup.NotApplicable, "-"
+ },
+ {
+ AssessmentSectionAssemblyCategoryGroup.NotAssessed, "NGO"
+ }
+ };
+ }
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/AssessmentSectionAssemblyCategoryTest.cs
===================================================================
diff -u
--- Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/AssessmentSectionAssemblyCategoryTest.cs (revision 0)
+++ Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/AssessmentSectionAssemblyCategoryTest.cs (revision 773d32ba918f32fa586ff74c4fc0dc80e89408c8)
@@ -0,0 +1,50 @@
+// Copyright (C) Stichting Deltares 2018. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using Core.Common.TestUtil;
+using NUnit.Framework;
+
+namespace Riskeer.AssemblyTool.Data.Test
+{
+ [TestFixture]
+ public class AssessmentSectionAssemblyCategoryTest
+ {
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ // Setup
+ var random = new Random(39);
+ var categoryType = random.NextEnumValue();
+ double lowerBoundary = random.NextDouble();
+ double upperBoundary = random.NextDouble();
+
+ // Call
+ var category = new AssessmentSectionAssemblyCategory(lowerBoundary, upperBoundary, categoryType);
+
+ // Assert
+ Assert.IsInstanceOf(category);
+ Assert.AreEqual(lowerBoundary, category.LowerBoundary);
+ Assert.AreEqual(upperBoundary, category.UpperBoundary);
+ Assert.AreEqual(categoryType, category.Group);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/CombinedAssemblyFailureMechanismSectionTest.cs
===================================================================
diff -u
--- Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/CombinedAssemblyFailureMechanismSectionTest.cs (revision 0)
+++ Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/CombinedAssemblyFailureMechanismSectionTest.cs (revision 773d32ba918f32fa586ff74c4fc0dc80e89408c8)
@@ -0,0 +1,49 @@
+// Copyright (C) Stichting Deltares 2018. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using Core.Common.TestUtil;
+using NUnit.Framework;
+
+namespace Riskeer.AssemblyTool.Data.Test
+{
+ [TestFixture]
+ public class CombinedAssemblyFailureMechanismSectionTest
+ {
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ // Setup
+ var random = new Random(21);
+ double sectionStart = random.NextDouble();
+ double sectionEnd = random.NextDouble();
+ var categoryGroup = random.NextEnumValue();
+
+ // Call
+ var assembly = new CombinedAssemblyFailureMechanismSection(sectionStart, sectionEnd, categoryGroup);
+
+ // Assert
+ Assert.AreEqual(sectionStart, assembly.SectionStart);
+ Assert.AreEqual(sectionEnd, assembly.SectionEnd);
+ Assert.AreEqual(categoryGroup, assembly.CategoryGroup);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/CombinedFailureMechanismSectionAssemblyTest.cs
===================================================================
diff -u
--- Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/CombinedFailureMechanismSectionAssemblyTest.cs (revision 0)
+++ Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/CombinedFailureMechanismSectionAssemblyTest.cs (revision 773d32ba918f32fa586ff74c4fc0dc80e89408c8)
@@ -0,0 +1,77 @@
+// Copyright (C) Stichting Deltares 2018. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using Core.Common.TestUtil;
+using NUnit.Framework;
+
+namespace Riskeer.AssemblyTool.Data.Test
+{
+ [TestFixture]
+ public class CombinedFailureMechanismSectionAssemblyTest
+ {
+ [Test]
+ public void Constructor_SectionNull_ThrowsArgumentNullException()
+ {
+ // Call
+ TestDelegate call = () => new CombinedFailureMechanismSectionAssembly(null, Enumerable.Empty());
+
+ // Assert
+ var exception = Assert.Throws(call);
+ Assert.AreEqual("section", exception.ParamName);
+ }
+
+ [Test]
+ public void Constructor_FailureMechanismResultsNull_ThrowsArgumentNullException()
+ {
+ // Setup
+ var random = new Random(21);
+ var section = new CombinedAssemblyFailureMechanismSection(random.NextDouble(), random.NextDouble(),
+ random.NextEnumValue());
+
+ // Call
+ TestDelegate call = () => new CombinedFailureMechanismSectionAssembly(section, null);
+
+ // Assert
+ var exception = Assert.Throws(call);
+ Assert.AreEqual("failureMechanismResults", exception.ParamName);
+ }
+
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ // Setup
+ var random = new Random(21);
+ var section = new CombinedAssemblyFailureMechanismSection(random.NextDouble(), random.NextDouble(),
+ random.NextEnumValue());
+ IEnumerable failureMechanismResults = Enumerable.Empty();
+
+ // Call
+ var assembly = new CombinedFailureMechanismSectionAssembly(section, failureMechanismResults);
+
+ // Assert
+ Assert.AreSame(section, assembly.Section);
+ Assert.AreSame(failureMechanismResults, assembly.FailureMechanismResults);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/FailureMechanismAssemblyCategoryGroupTest.cs
===================================================================
diff -u
--- Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/FailureMechanismAssemblyCategoryGroupTest.cs (revision 0)
+++ Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/FailureMechanismAssemblyCategoryGroupTest.cs (revision 773d32ba918f32fa586ff74c4fc0dc80e89408c8)
@@ -0,0 +1,105 @@
+// Copyright (C) Stichting Deltares 2018. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System.Collections.Generic;
+using Core.Common.TestUtil;
+using NUnit.Framework;
+
+namespace Riskeer.AssemblyTool.Data.Test
+{
+ [TestFixture]
+ public class FailureMechanismAssemblyCategoryGroupTest : EnumWithResourcesDisplayNameTestFixture
+ {
+ protected override IDictionary ExpectedValueForEnumValues
+ {
+ get
+ {
+ return new Dictionary
+ {
+ {
+ FailureMechanismAssemblyCategoryGroup.None, 1
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.NotApplicable, 2
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.It, 3
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.IIt, 4
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.IIIt, 5
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.IVt, 6
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.Vt, 7
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.VIt, 8
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.VIIt, 9
+ }
+ };
+ }
+ }
+
+ protected override IDictionary ExpectedDisplayNameForEnumValues
+ {
+ get
+ {
+ return new Dictionary
+ {
+ {
+ FailureMechanismAssemblyCategoryGroup.None, ""
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.NotApplicable, "-"
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.It, "It"
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.IIt, "IIt"
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.IIIt, "IIIt"
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.IVt, "IVt"
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.Vt, "Vt"
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.VIt, "VIt"
+ },
+ {
+ FailureMechanismAssemblyCategoryGroup.VIIt, "VIIt"
+ }
+ };
+ }
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/FailureMechanismAssemblyCategoryTest.cs
===================================================================
diff -u
--- Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/FailureMechanismAssemblyCategoryTest.cs (revision 0)
+++ Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/FailureMechanismAssemblyCategoryTest.cs (revision 773d32ba918f32fa586ff74c4fc0dc80e89408c8)
@@ -0,0 +1,50 @@
+// Copyright (C) Stichting Deltares 2018. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using Core.Common.TestUtil;
+using NUnit.Framework;
+
+namespace Riskeer.AssemblyTool.Data.Test
+{
+ [TestFixture]
+ public class FailureMechanismAssemblyCategoryTest
+ {
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ // Setup
+ var random = new Random(39);
+ var categoryType = random.NextEnumValue();
+ double lowerBoundary = random.NextDouble();
+ double upperBoundary = random.NextDouble();
+
+ // Call
+ var category = new FailureMechanismAssemblyCategory(lowerBoundary, upperBoundary, categoryType);
+
+ // Assert
+ Assert.IsInstanceOf(category);
+ Assert.AreEqual(lowerBoundary, category.LowerBoundary);
+ Assert.AreEqual(upperBoundary, category.UpperBoundary);
+ Assert.AreEqual(categoryType, category.Group);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/FailureMechanismAssemblyTest.cs
===================================================================
diff -u
--- Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/FailureMechanismAssemblyTest.cs (revision 0)
+++ Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/FailureMechanismAssemblyTest.cs (revision 773d32ba918f32fa586ff74c4fc0dc80e89408c8)
@@ -0,0 +1,47 @@
+// Copyright (C) Stichting Deltares 2018. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using Core.Common.TestUtil;
+using NUnit.Framework;
+
+namespace Riskeer.AssemblyTool.Data.Test
+{
+ [TestFixture]
+ public class FailureMechanismAssemblyTest
+ {
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ // Setup
+ var random = new Random(39);
+ double probability = random.NextDouble();
+ var group = random.NextEnumValue();
+
+ // Call
+ var assembly = new FailureMechanismAssembly(probability, group);
+
+ // Assert
+ Assert.AreEqual(probability, assembly.Probability);
+ Assert.AreEqual(group, assembly.Group);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/FailureMechanismSectionAssemblyCategoryGroupTest.cs
===================================================================
diff -u
--- Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/FailureMechanismSectionAssemblyCategoryGroupTest.cs (revision 0)
+++ Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/FailureMechanismSectionAssemblyCategoryGroupTest.cs (revision 773d32ba918f32fa586ff74c4fc0dc80e89408c8)
@@ -0,0 +1,68 @@
+// Copyright (C) Stichting Deltares 2018. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System.Collections.Generic;
+using Core.Common.TestUtil;
+using NUnit.Framework;
+
+namespace Riskeer.AssemblyTool.Data.Test
+{
+ [TestFixture]
+ public class FailureMechanismSectionAssemblyCategoryGroupTest : EnumValuesTestFixture
+ {
+ protected override IDictionary ExpectedValueForEnumValues
+ {
+ get
+ {
+ return new Dictionary
+ {
+ {
+ FailureMechanismSectionAssemblyCategoryGroup.None, 1
+ },
+ {
+ FailureMechanismSectionAssemblyCategoryGroup.NotApplicable, 2
+ },
+ {
+ FailureMechanismSectionAssemblyCategoryGroup.Iv, 3
+ },
+ {
+ FailureMechanismSectionAssemblyCategoryGroup.IIv, 4
+ },
+ {
+ FailureMechanismSectionAssemblyCategoryGroup.IIIv, 5
+ },
+ {
+ FailureMechanismSectionAssemblyCategoryGroup.IVv, 6
+ },
+ {
+ FailureMechanismSectionAssemblyCategoryGroup.Vv, 7
+ },
+ {
+ FailureMechanismSectionAssemblyCategoryGroup.VIv, 8
+ },
+ {
+ FailureMechanismSectionAssemblyCategoryGroup.VIIv, 9
+ }
+ };
+ }
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/FailureMechanismSectionAssemblyCategoryTest.cs
===================================================================
diff -u
--- Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/FailureMechanismSectionAssemblyCategoryTest.cs (revision 0)
+++ Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/FailureMechanismSectionAssemblyCategoryTest.cs (revision 773d32ba918f32fa586ff74c4fc0dc80e89408c8)
@@ -0,0 +1,50 @@
+// Copyright (C) Stichting Deltares 2018. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using Core.Common.TestUtil;
+using NUnit.Framework;
+
+namespace Riskeer.AssemblyTool.Data.Test
+{
+ [TestFixture]
+ public class FailureMechanismSectionAssemblyCategoryTest
+ {
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ // Setup
+ var random = new Random(39);
+ var categoryType = random.NextEnumValue();
+ double lowerBoundary = random.NextDouble();
+ double upperBoundary = random.NextDouble();
+
+ // Call
+ var category = new FailureMechanismSectionAssemblyCategory(lowerBoundary, upperBoundary, categoryType);
+
+ // Assert
+ Assert.IsInstanceOf(category);
+ Assert.AreEqual(lowerBoundary, category.LowerBoundary);
+ Assert.AreEqual(upperBoundary, category.UpperBoundary);
+ Assert.AreEqual(categoryType, category.Group);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/FailureMechanismSectionAssemblyTest.cs
===================================================================
diff -u
--- Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/FailureMechanismSectionAssemblyTest.cs (revision 0)
+++ Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/FailureMechanismSectionAssemblyTest.cs (revision 773d32ba918f32fa586ff74c4fc0dc80e89408c8)
@@ -0,0 +1,47 @@
+// Copyright (C) Stichting Deltares 2018. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System;
+using Core.Common.TestUtil;
+using NUnit.Framework;
+
+namespace Riskeer.AssemblyTool.Data.Test
+{
+ [TestFixture]
+ public class FailureMechanismSectionAssemblyTest
+ {
+ [Test]
+ public void Constructor_ExpectedValues()
+ {
+ // Setup
+ var random = new Random(39);
+ double probability = random.NextDouble();
+ var group = random.NextEnumValue();
+
+ // Call
+ var assembly = new FailureMechanismSectionAssembly(probability, group);
+
+ // Assert
+ Assert.AreEqual(probability, assembly.Probability);
+ Assert.AreEqual(group, assembly.Group);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/Properties/AssemblyInfo.cs
===================================================================
diff -u
--- Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/Properties/AssemblyInfo.cs (revision 0)
+++ Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/Properties/AssemblyInfo.cs (revision 773d32ba918f32fa586ff74c4fc0dc80e89408c8)
@@ -0,0 +1,25 @@
+// Copyright (C) Stichting Deltares 2018. All rights reserved.
+//
+// This file is part of Ringtoets.
+//
+// Ringtoets is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see .
+//
+// All names, logos, and references to "Deltares" are registered trademarks of
+// Stichting Deltares and remain full property of Stichting Deltares at all times.
+// All rights reserved.
+
+using System.Reflection;
+
+[assembly: AssemblyTitle("Riskeer.AssemblyTool.Data.Test")]
+[assembly: AssemblyProduct("Riskeer.AssemblyTool.Data.Test")]
\ No newline at end of file
Index: Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/Riskeer.AssemblyTool.Data.Test.csproj
===================================================================
diff -u
--- Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/Riskeer.AssemblyTool.Data.Test.csproj (revision 0)
+++ Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/Riskeer.AssemblyTool.Data.Test.csproj (revision 773d32ba918f32fa586ff74c4fc0dc80e89408c8)
@@ -0,0 +1,51 @@
+
+
+
+ {980ADCAB-D8F7-4BE0-A2AF-EFB0A93AD277}
+ Riskeer.AssemblyTool.Data.Test
+ Riskeer.AssemblyTool.Data.Test
+
+
+
+
+ ..\..\..\..\packages\NUnit.3.8.1\lib\net40\nunit.framework.dll
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Copying.licenseheader
+
+
+
+
+
+ {F49BD8B2-332A-4C91-A196-8CCE0A2C7D98}
+ Core.Common.Util
+
+
+ {D749EE4C-CE50-4C17-BF01-9A953028C126}
+ Core.Common.TestUtil
+
+
+ {420ED9C3-0C33-47EA-B893-121A9C0DB4F1}
+ Riskeer.AssemblyTool.Data
+
+
+
\ No newline at end of file
Index: Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/packages.config
===================================================================
diff -u
--- Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/packages.config (revision 0)
+++ Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.Test/packages.config (revision 773d32ba918f32fa586ff74c4fc0dc80e89408c8)
@@ -0,0 +1,26 @@
+
+
+
+
+
\ No newline at end of file