Index: Ringtoets/Integration/src/Ringtoets.Integration.IO/Helpers/ExportableFailureMechanismSectionHelper.cs
===================================================================
diff -u -r5a45390c51e6c89df19742872ca263dc5621725d -r345061e55dbb57efac05d56b0f9be112d6c61e56
--- Ringtoets/Integration/src/Ringtoets.Integration.IO/Helpers/ExportableFailureMechanismSectionHelper.cs (.../ExportableFailureMechanismSectionHelper.cs) (revision 5a45390c51e6c89df19742872ca263dc5621725d)
+++ Ringtoets/Integration/src/Ringtoets.Integration.IO/Helpers/ExportableFailureMechanismSectionHelper.cs (.../ExportableFailureMechanismSectionHelper.cs) (revision 345061e55dbb57efac05d56b0f9be112d6c61e56)
@@ -33,12 +33,12 @@
/// Creates a lookup between failure mechanism section results and the corresponding
/// .
///
- /// The type of
+ /// The type of .
/// The failure mechanism sections results to create a
/// for.
/// A between the failure mechanism section results
/// and .
- /// Thrown when is null.n
+ /// Thrown when is null.
public static IDictionary CreateFailureMechanismSectionResultLookup(
IEnumerable failureMechanismSectionResults)
where TSectionResult : FailureMechanismSectionResult
Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableFailureMechanismAssemblyResultWithProbabilityTest.cs
===================================================================
diff -u
--- Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableFailureMechanismAssemblyResultWithProbabilityTest.cs (revision 0)
+++ Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableFailureMechanismAssemblyResultWithProbabilityTest.cs (revision 345061e55dbb57efac05d56b0f9be112d6c61e56)
@@ -0,0 +1,53 @@
+// Copyright (C) Stichting Deltares 2017. 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;
+using Ringtoets.AssemblyTool.Data;
+using Ringtoets.Integration.IO.Assembly;
+
+namespace Ringtoets.Integration.IO.Test.Assembly
+{
+ [TestFixture]
+ public class ExportableFailureMechanismAssemblyResultWithProbabilityTest
+ {
+ [Test]
+ public void Constructor_WithArguments_ExpectedValues()
+ {
+ // Setup
+ var random = new Random(21);
+ var assemblyMethod = random.NextEnumValue();
+ var assemblyCategory = random.NextEnumValue();
+ double probability = random.NextDouble();
+
+ // Call
+ var assemblyResult = new ExportableFailureMechanismAssemblyResultWithProbability(assemblyMethod, assemblyCategory, probability);
+
+ // Assert
+ Assert.IsInstanceOf(assemblyResult);
+
+ Assert.AreEqual(assemblyMethod, assemblyResult.AssemblyMethod);
+ Assert.AreEqual(assemblyCategory, assemblyResult.AssemblyCategory);
+ Assert.AreEqual(probability, assemblyResult.Probability);
+ }
+ }
+}
\ No newline at end of file
Fisheye: Tag 345061e55dbb57efac05d56b0f9be112d6c61e56 refers to a dead (removed) revision in file `Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableFailureMechanismAssemblyResultWithProbablityTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Factories/ExportableAssessmentSectionFactoryTest.cs
===================================================================
diff -u -r6ae87d30b11c6c762b6bae4b5d2a20c313d6e50a -r345061e55dbb57efac05d56b0f9be112d6c61e56
--- Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Factories/ExportableAssessmentSectionFactoryTest.cs (.../ExportableAssessmentSectionFactoryTest.cs) (revision 6ae87d30b11c6c762b6bae4b5d2a20c313d6e50a)
+++ Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Factories/ExportableAssessmentSectionFactoryTest.cs (.../ExportableAssessmentSectionFactoryTest.cs) (revision 345061e55dbb57efac05d56b0f9be112d6c61e56)
@@ -108,14 +108,14 @@
Assert.AreEqual(name, exportableAssessmentSection.Name);
CollectionAssert.AreEqual(referenceLine.Points, exportableAssessmentSection.Geometry);
- ExportableFailureMechanismAssemblyResultWithProbability failureMechanismAssemblyWithProbablity = exportableAssessmentSection.FailureMechanismAssemblyWithProbability;
- Assert.AreEqual(ExportableAssemblyMethod.WBI2B1, failureMechanismAssemblyWithProbablity.AssemblyMethod);
- Assert.AreEqual(assessmentSectionAssemblyCalculator.AssembleFailureMechanismsAssemblyOutput.Group, failureMechanismAssemblyWithProbablity.AssemblyCategory);
- Assert.AreEqual(assessmentSectionAssemblyCalculator.AssembleFailureMechanismsAssemblyOutput.Probability, failureMechanismAssemblyWithProbablity.Probability);
+ ExportableFailureMechanismAssemblyResultWithProbability failureMechanismAssemblyWithProbability = exportableAssessmentSection.FailureMechanismAssemblyWithProbability;
+ Assert.AreEqual(ExportableAssemblyMethod.WBI2B1, failureMechanismAssemblyWithProbability.AssemblyMethod);
+ Assert.AreEqual(assessmentSectionAssemblyCalculator.AssembleFailureMechanismsAssemblyOutput.Group, failureMechanismAssemblyWithProbability.AssemblyCategory);
+ Assert.AreEqual(assessmentSectionAssemblyCalculator.AssembleFailureMechanismsAssemblyOutput.Probability, failureMechanismAssemblyWithProbability.Probability);
- ExportableFailureMechanismAssemblyResult failureMechanismAssemblyWithoutProbablity = exportableAssessmentSection.FailureMechanismAssemblyWithoutProbability;
- Assert.AreEqual(ExportableAssemblyMethod.WBI2A1, failureMechanismAssemblyWithoutProbablity.AssemblyMethod);
- Assert.AreEqual(assessmentSectionAssemblyCalculator.AssembleFailureMechanismsAssemblyCategoryGroupOutput, failureMechanismAssemblyWithoutProbablity.AssemblyCategory);
+ ExportableFailureMechanismAssemblyResult failureMechanismAssemblyWithoutProbability = exportableAssessmentSection.FailureMechanismAssemblyWithoutProbability;
+ Assert.AreEqual(ExportableAssemblyMethod.WBI2A1, failureMechanismAssemblyWithoutProbability.AssemblyMethod);
+ Assert.AreEqual(assessmentSectionAssemblyCalculator.AssembleFailureMechanismsAssemblyCategoryGroupOutput, failureMechanismAssemblyWithoutProbability.AssemblyCategory);
ExportableAssessmentSectionAssemblyResult exportableAssessmentSectionAssemblyResult = exportableAssessmentSection.AssessmentSectionAssembly;
Assert.AreEqual(assessmentSectionAssemblyCalculator.AssembleAssessmentSectionCategoryGroupOutput, exportableAssessmentSectionAssemblyResult.AssemblyCategory);
Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Ringtoets.Integration.IO.Test.csproj
===================================================================
diff -u -r79ec17c47b1f2f114fa2f9f3125d78b0cf76a0bf -r345061e55dbb57efac05d56b0f9be112d6c61e56
--- Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Ringtoets.Integration.IO.Test.csproj (.../Ringtoets.Integration.IO.Test.csproj) (revision 79ec17c47b1f2f114fa2f9f3125d78b0cf76a0bf)
+++ Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Ringtoets.Integration.IO.Test.csproj (.../Ringtoets.Integration.IO.Test.csproj) (revision 345061e55dbb57efac05d56b0f9be112d6c61e56)
@@ -29,7 +29,7 @@
-
+