Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/IllustrationPoints/TestFaultTreeIllustrationPointTest.cs
===================================================================
diff -u
--- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/IllustrationPoints/TestFaultTreeIllustrationPointTest.cs (revision 0)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/IllustrationPoints/TestFaultTreeIllustrationPointTest.cs (revision b7f14623d48e8451968836803a80cd9d51492164)
@@ -0,0 +1,62 @@
+// 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 NUnit.Framework;
+using Ringtoets.Common.Data.IllustrationPoints;
+using Ringtoets.Common.Data.TestUtil.IllustrationPoints;
+
+namespace Ringtoets.Common.Data.TestUtil.Test.IllustrationPoints
+{
+ [TestFixture]
+ public class TestFaultTreeIllustrationPointTest
+ {
+ [Test]
+ public void DefaultConstructor_ExpectedValues()
+ {
+ // Call
+ var illustrationPoint = new TestFaultTreeIllustrationPoint();
+
+ // Assert
+ Assert.IsInstanceOf(illustrationPoint);
+
+ Assert.AreEqual("Illustration Point", illustrationPoint.Name);
+ CollectionAssert.IsEmpty(illustrationPoint.Stochasts);
+ Assert.AreEqual(3.14, illustrationPoint.Beta, illustrationPoint.Beta.GetAccuracy());
+ }
+
+ [Test]
+ public void ParameteredConstructor_ExpectedValues()
+ {
+ // Setup
+ const double beta = 1.23;
+
+ // Call
+ var illustrationPoint = new TestFaultTreeIllustrationPoint(beta);
+
+ // Assert
+ Assert.IsInstanceOf(illustrationPoint);
+
+ Assert.AreEqual("Illustration Point", illustrationPoint.Name);
+ CollectionAssert.IsEmpty(illustrationPoint.Stochasts);
+ Assert.AreEqual(beta, illustrationPoint.Beta, illustrationPoint.Beta.GetAccuracy());
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/IllustrationPoints/TestGeneralResultFaultTreeIllustrationPointTest.cs
===================================================================
diff -u -rb980005d38347be63445eae4223e5d9fa2dc0395 -rb7f14623d48e8451968836803a80cd9d51492164
--- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/IllustrationPoints/TestGeneralResultFaultTreeIllustrationPointTest.cs (.../TestGeneralResultFaultTreeIllustrationPointTest.cs) (revision b980005d38347be63445eae4223e5d9fa2dc0395)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/IllustrationPoints/TestGeneralResultFaultTreeIllustrationPointTest.cs (.../TestGeneralResultFaultTreeIllustrationPointTest.cs) (revision b7f14623d48e8451968836803a80cd9d51492164)
@@ -19,6 +19,7 @@
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
+using System.Linq;
using NUnit.Framework;
using Ringtoets.Common.Data.IllustrationPoints;
using Ringtoets.Common.Data.TestUtil.IllustrationPoints;
@@ -37,8 +38,16 @@
// Assert
Assert.IsInstanceOf>(generalResult);
AssertWindDirection(WindDirectionTestFactory.CreateTestWindDirection(), generalResult.GoverningWindDirection);
- CollectionAssert.IsEmpty(generalResult.Stochasts);
- CollectionAssert.IsEmpty(generalResult.TopLevelIllustrationPoints);
+ Assert.AreEqual("A", generalResult.Stochasts.First().Name);
+ Assert.AreEqual(5.0, generalResult.Stochasts.First().Alpha);
+ Assert.AreEqual(10.0, generalResult.Stochasts.First().Duration);
+ Assert.AreEqual(generalResult.TopLevelIllustrationPoints.Count(), 1);
+ AssertWindDirection(WindDirectionTestFactory.CreateTestWindDirection(), generalResult.TopLevelIllustrationPoints.First().WindDirection);
+ Assert.AreEqual("closing situation", generalResult.TopLevelIllustrationPoints.First().ClosingSituation);
+ var illustrationPointNode = new IllustrationPointNode(new TestFaultTreeIllustrationPoint());
+ Assert.AreEqual(illustrationPointNode.Data.Name, generalResult.TopLevelIllustrationPoints.First().FaultTreeNodeRoot.Data.Name);
+ Assert.AreEqual(illustrationPointNode.Data.Beta, generalResult.TopLevelIllustrationPoints.First().FaultTreeNodeRoot.Data.Beta);
+ CollectionAssert.IsEmpty(generalResult.TopLevelIllustrationPoints.First().FaultTreeNodeRoot.Children);
}
private static void AssertWindDirection(WindDirection expected, WindDirection actual)
Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/Ringtoets.Common.Data.TestUtil.Test.csproj
===================================================================
diff -u -rd16d146d545cf86ad58c5e2c73cb5bc1b784ce67 -rb7f14623d48e8451968836803a80cd9d51492164
--- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/Ringtoets.Common.Data.TestUtil.Test.csproj (.../Ringtoets.Common.Data.TestUtil.Test.csproj) (revision d16d146d545cf86ad58c5e2c73cb5bc1b784ce67)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil.Test/Ringtoets.Common.Data.TestUtil.Test.csproj (.../Ringtoets.Common.Data.TestUtil.Test.csproj) (revision b7f14623d48e8451968836803a80cd9d51492164)
@@ -60,6 +60,7 @@
+
Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/IllustrationPoints/TestFaultTreeIllustrationPoint.cs
===================================================================
diff -u
--- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/IllustrationPoints/TestFaultTreeIllustrationPoint.cs (revision 0)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/IllustrationPoints/TestFaultTreeIllustrationPoint.cs (revision b7f14623d48e8451968836803a80cd9d51492164)
@@ -0,0 +1,48 @@
+// 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.Linq;
+using Ringtoets.Common.Data.IllustrationPoints;
+
+namespace Ringtoets.Common.Data.TestUtil.IllustrationPoints
+{
+ ///
+ /// A simple sub mechanism illustration point that can be used for testing.
+ ///
+ public class TestFaultTreeIllustrationPoint : FaultTreeIllustrationPoint
+ {
+ ///
+ /// Creates a new instance of .
+ ///
+ public TestFaultTreeIllustrationPoint()
+ : this(3.14) {}
+
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The beta of the illustration point.
+ public TestFaultTreeIllustrationPoint(double beta)
+ : base("Illustration Point",
+ beta,
+ Enumerable.Empty(),
+ CombinationType.And) {}
+ }
+}
\ No newline at end of file
Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/IllustrationPoints/TestGeneralResultFaultTreeIllustrationPoint.cs
===================================================================
diff -u -rb980005d38347be63445eae4223e5d9fa2dc0395 -rb7f14623d48e8451968836803a80cd9d51492164
--- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/IllustrationPoints/TestGeneralResultFaultTreeIllustrationPoint.cs (.../TestGeneralResultFaultTreeIllustrationPoint.cs) (revision b980005d38347be63445eae4223e5d9fa2dc0395)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/IllustrationPoints/TestGeneralResultFaultTreeIllustrationPoint.cs (.../TestGeneralResultFaultTreeIllustrationPoint.cs) (revision b7f14623d48e8451968836803a80cd9d51492164)
@@ -19,7 +19,7 @@
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
-using System.Linq;
+using System.Collections.Generic;
using Ringtoets.Common.Data.IllustrationPoints;
namespace Ringtoets.Common.Data.TestUtil.IllustrationPoints
@@ -35,7 +35,15 @@
///
public TestGeneralResultFaultTreeIllustrationPoint()
: base(WindDirectionTestFactory.CreateTestWindDirection(),
- Enumerable.Empty(),
- Enumerable.Empty()) {}
+ new[]
+ {
+ new Stochast("A", 10.0, 5.0)
+ },
+ new List
+ {
+ new TopLevelFaultTreeIllustrationPoint(WindDirectionTestFactory.CreateTestWindDirection(),
+ "closing situation",
+ new IllustrationPointNode(new TestFaultTreeIllustrationPoint()))
+ }) {}
}
}
\ No newline at end of file
Index: Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/Ringtoets.Common.Data.TestUtil.csproj
===================================================================
diff -u -rd16d146d545cf86ad58c5e2c73cb5bc1b784ce67 -rb7f14623d48e8451968836803a80cd9d51492164
--- Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/Ringtoets.Common.Data.TestUtil.csproj (.../Ringtoets.Common.Data.TestUtil.csproj) (revision d16d146d545cf86ad58c5e2c73cb5bc1b784ce67)
+++ Ringtoets/Common/test/Ringtoets.Common.Data.TestUtil/Ringtoets.Common.Data.TestUtil.csproj (.../Ringtoets.Common.Data.TestUtil.csproj) (revision b7f14623d48e8451968836803a80cd9d51492164)
@@ -61,6 +61,7 @@
+
Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/PropertyClasses/StructuresOutputPropertiesTest.cs
===================================================================
diff -u -r21f9de0d12327b2d4319a2e78055d11c66cc7300 -rb7f14623d48e8451968836803a80cd9d51492164
--- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/PropertyClasses/StructuresOutputPropertiesTest.cs (.../StructuresOutputPropertiesTest.cs) (revision 21f9de0d12327b2d4319a2e78055d11c66cc7300)
+++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/PropertyClasses/StructuresOutputPropertiesTest.cs (.../StructuresOutputPropertiesTest.cs) (revision b7f14623d48e8451968836803a80cd9d51492164)
@@ -20,12 +20,11 @@
// All rights reserved.
using System;
-using System.Collections.Generic;
using System.ComponentModel;
+using System.Linq;
using Core.Common.Gui.PropertyBag;
using Core.Common.TestUtil;
using NUnit.Framework;
-using Ringtoets.Common.Data.IllustrationPoints;
using Ringtoets.Common.Data.Probability;
using Ringtoets.Common.Data.Structures;
using Ringtoets.Common.Data.TestUtil;
@@ -92,17 +91,13 @@
probability,
reliability,
factorOfSafety);
- var topLevelFaultTreeIllustrationPoint = new TopLevelFaultTreeIllustrationPoint(new WindDirection("SSE", 5.0),
- "closing situation",
- new IllustrationPointNode(new TestIllustrationPoint()));
+ var generalResult = new TestGeneralResultFaultTreeIllustrationPoint();
var expectedFaultTreeIllustrationPointBaseProperty = new[]
{
- new FaultTreeIllustrationPointBaseProperties(topLevelFaultTreeIllustrationPoint)
+ new FaultTreeIllustrationPointBaseProperties(generalResult.TopLevelIllustrationPoints.First())
};
- var generalResult = new GeneralResult(new WindDirection("SSE", 5.0),
- new Stochast[0],
- new List { topLevelFaultTreeIllustrationPoint });
+
var structuresOutput = new StructuresOutput(probabilityAssessmentOutput, generalResult);
// Call
@@ -114,9 +109,9 @@
Assert.AreEqual(ProbabilityFormattingHelper.Format(probability), properties.Probability);
Assert.AreEqual(reliability, properties.Reliability, properties.Reliability.GetAccuracy());
Assert.AreEqual(factorOfSafety, properties.FactorOfSafety, properties.FactorOfSafety.GetAccuracy());
- Assert.AreEqual("SSE", properties.WindDirection);
- Assert.IsEmpty(properties.AlphaValues);
- Assert.IsEmpty(properties.Durations);
+ Assert.AreEqual(generalResult.GoverningWindDirection.Name, properties.WindDirection);
+ Assert.AreEqual(5.0, properties.AlphaValues[0].Alpha);
+ Assert.AreEqual(10.0, properties.Durations[0].Duration);
Assert.AreEqual(expectedFaultTreeIllustrationPointBaseProperty[0].WindDirection, properties.IllustrationPoints[0].WindDirection);
Assert.AreEqual(expectedFaultTreeIllustrationPointBaseProperty[0].Reliability, properties.IllustrationPoints[0].Reliability);
Assert.AreEqual(expectedFaultTreeIllustrationPointBaseProperty[0].CalculatedProbability, properties.IllustrationPoints[0].CalculatedProbability);
Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/PropertyClasses/DikeHeightOutputPropertiesTest.cs
===================================================================
diff -u -r25872f07e743010d1107ae920e95e0ba1a108cfa -rb7f14623d48e8451968836803a80cd9d51492164
--- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/PropertyClasses/DikeHeightOutputPropertiesTest.cs (.../DikeHeightOutputPropertiesTest.cs) (revision 25872f07e743010d1107ae920e95e0ba1a108cfa)
+++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/PropertyClasses/DikeHeightOutputPropertiesTest.cs (.../DikeHeightOutputPropertiesTest.cs) (revision b7f14623d48e8451968836803a80cd9d51492164)
@@ -21,13 +21,15 @@
using System;
using System.ComponentModel;
+using System.Linq;
using Core.Common.Gui.PropertyBag;
using Core.Common.TestUtil;
using Core.Common.Utils;
using NUnit.Framework;
using Ringtoets.Common.Data.Hydraulics;
using Ringtoets.Common.Data.TestUtil;
using Ringtoets.Common.Data.TestUtil.IllustrationPoints;
+using Ringtoets.Common.Forms.PropertyClasses;
using Ringtoets.Common.Forms.TypeConverters;
using Ringtoets.GrassCoverErosionInwards.Data;
using Ringtoets.GrassCoverErosionInwards.Data.TestUtil;
@@ -89,12 +91,20 @@
double dikeHeightCalculatedReliability = random.NextDouble();
var dikeHeightConvergence = random.NextEnumValue();
+ var generalResult = new TestGeneralResultFaultTreeIllustrationPoint();
+ var expectedFaultTreeIllustrationPointBaseProperty = new[]
+ {
+ new FaultTreeIllustrationPointBaseProperties(generalResult.TopLevelIllustrationPoints.First())
+ };
+
var dikeHeightOutput = new DikeHeightOutput(dikeHeight,
dikeHeightTargetProbability,
dikeHeightTargetReliability,
dikeHeightCalculatedProbability,
dikeHeightCalculatedReliability,
dikeHeightConvergence);
+ dikeHeightOutput.SetGeneralResult(generalResult);
+
// Call
var properties = new DikeHeightOutputProperties(dikeHeightOutput);
@@ -116,6 +126,14 @@
string dikeHeightConvergenceValue = new EnumDisplayWrapper(dikeHeightConvergence).DisplayName;
Assert.AreEqual(dikeHeightConvergenceValue, properties.DikeHeightConvergence);
+ Assert.AreEqual(generalResult.GoverningWindDirection.Name, properties.WindDirection);
+ Assert.AreEqual(generalResult.Stochasts, properties.AlphaValues);
+ Assert.AreEqual(generalResult.Stochasts, properties.Durations);
+ Assert.AreEqual(expectedFaultTreeIllustrationPointBaseProperty[0].WindDirection, properties.IllustrationPoints[0].WindDirection);
+ Assert.AreEqual(expectedFaultTreeIllustrationPointBaseProperty[0].Reliability, properties.IllustrationPoints[0].Reliability);
+ Assert.AreEqual(expectedFaultTreeIllustrationPointBaseProperty[0].CalculatedProbability, properties.IllustrationPoints[0].CalculatedProbability);
+ Assert.AreEqual(expectedFaultTreeIllustrationPointBaseProperty[0].ClosingSituation, properties.IllustrationPoints[0].ClosingSituation);
+ Assert.AreEqual(expectedFaultTreeIllustrationPointBaseProperty[0].IllustrationPoints, properties.IllustrationPoints[0].IllustrationPoints);
}
[Test]
Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/PropertyClasses/OvertoppingOutputPropertiesTest.cs
===================================================================
diff -u -rf6e0d831deebbd4dea67b34697b64a68d620974d -rb7f14623d48e8451968836803a80cd9d51492164
--- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/PropertyClasses/OvertoppingOutputPropertiesTest.cs (.../OvertoppingOutputPropertiesTest.cs) (revision f6e0d831deebbd4dea67b34697b64a68d620974d)
+++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/PropertyClasses/OvertoppingOutputPropertiesTest.cs (.../OvertoppingOutputPropertiesTest.cs) (revision b7f14623d48e8451968836803a80cd9d51492164)
@@ -21,13 +21,15 @@
using System;
using System.ComponentModel;
+using System.Linq;
using Core.Common.Gui.PropertyBag;
using Core.Common.TestUtil;
using NUnit.Framework;
using Ringtoets.Common.Data.Probability;
using Ringtoets.Common.Data.TestUtil;
using Ringtoets.Common.Data.TestUtil.IllustrationPoints;
using Ringtoets.Common.Forms.Helpers;
+using Ringtoets.Common.Forms.PropertyClasses;
using Ringtoets.GrassCoverErosionInwards.Data;
using Ringtoets.GrassCoverErosionInwards.Data.TestUtil;
using Ringtoets.GrassCoverErosionInwards.Forms.PropertyClasses;
@@ -95,9 +97,16 @@
reliability,
factorOfSafety);
+ var generalResult = new TestGeneralResultFaultTreeIllustrationPoint();
+ var expectedFaultTreeIllustrationPointBaseProperty = new[]
+ {
+ new FaultTreeIllustrationPointBaseProperties(generalResult.TopLevelIllustrationPoints.First())
+ };
+
var overtoppingOutput = new OvertoppingOutput(waveHeight,
isOvertoppingDominant,
probabilityAssessmentOutput);
+ overtoppingOutput.SetGeneralResult(generalResult);
// Call
var properties = new OvertoppingOutputProperties(overtoppingOutput);
@@ -114,6 +123,15 @@
Assert.AreEqual(ProbabilityFormattingHelper.Format(probability), properties.Probability);
Assert.AreEqual(isOvertoppingDominant, properties.IsOvertoppingDominant);
+
+ Assert.AreEqual(generalResult.GoverningWindDirection.Name, properties.WindDirection);
+ Assert.AreEqual(generalResult.Stochasts, properties.AlphaValues);
+ Assert.AreEqual(generalResult.Stochasts, properties.Durations);
+ Assert.AreEqual(expectedFaultTreeIllustrationPointBaseProperty[0].WindDirection, properties.IllustrationPoints[0].WindDirection);
+ Assert.AreEqual(expectedFaultTreeIllustrationPointBaseProperty[0].Reliability, properties.IllustrationPoints[0].Reliability);
+ Assert.AreEqual(expectedFaultTreeIllustrationPointBaseProperty[0].CalculatedProbability, properties.IllustrationPoints[0].CalculatedProbability);
+ Assert.AreEqual(expectedFaultTreeIllustrationPointBaseProperty[0].ClosingSituation, properties.IllustrationPoints[0].ClosingSituation);
+ Assert.AreEqual(expectedFaultTreeIllustrationPointBaseProperty[0].IllustrationPoints, properties.IllustrationPoints[0].IllustrationPoints);
}
[Test]
Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/PropertyClasses/OvertoppingRateOutputPropertiesTest.cs
===================================================================
diff -u -r25872f07e743010d1107ae920e95e0ba1a108cfa -rb7f14623d48e8451968836803a80cd9d51492164
--- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/PropertyClasses/OvertoppingRateOutputPropertiesTest.cs (.../OvertoppingRateOutputPropertiesTest.cs) (revision 25872f07e743010d1107ae920e95e0ba1a108cfa)
+++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/PropertyClasses/OvertoppingRateOutputPropertiesTest.cs (.../OvertoppingRateOutputPropertiesTest.cs) (revision b7f14623d48e8451968836803a80cd9d51492164)
@@ -20,14 +20,18 @@
// All rights reserved.
using System;
+using System.Collections.Generic;
using System.ComponentModel;
+using System.Linq;
using Core.Common.Gui.PropertyBag;
using Core.Common.TestUtil;
using Core.Common.Utils;
using NUnit.Framework;
using Ringtoets.Common.Data.Hydraulics;
+using Ringtoets.Common.Data.IllustrationPoints;
using Ringtoets.Common.Data.TestUtil;
using Ringtoets.Common.Data.TestUtil.IllustrationPoints;
+using Ringtoets.Common.Forms.PropertyClasses;
using Ringtoets.Common.Forms.TypeConverters;
using Ringtoets.GrassCoverErosionInwards.Data;
using Ringtoets.GrassCoverErosionInwards.Data.TestUtil;
@@ -89,12 +93,19 @@
double overtoppingRateCalculatedReliability = random.NextDouble();
var overtoppingRateConvergence = random.NextEnumValue();
+ var generalResult = new TestGeneralResultFaultTreeIllustrationPoint();
+ var expectedFaultTreeIllustrationPointBaseProperty = new[]
+ {
+ new FaultTreeIllustrationPointBaseProperties(generalResult.TopLevelIllustrationPoints.First())
+ };
+
var overtoppingRateOutput = new OvertoppingRateOutput(overtoppingRate,
overtoppingRateTargetProbability,
overtoppingRateTargetReliability,
overtoppingRateCalculatedProbability,
overtoppingRateCalculatedReliability,
overtoppingRateConvergence);
+ overtoppingRateOutput.SetGeneralResult(generalResult);
// Call
var properties = new OvertoppingRateOutputProperties(overtoppingRateOutput);
@@ -117,6 +128,14 @@
string overtoppingRateConvergenceValue = new EnumDisplayWrapper(overtoppingRateConvergence).DisplayName;
Assert.AreEqual(overtoppingRateConvergenceValue, properties.OvertoppingRateConvergence);
+ Assert.AreEqual(generalResult.GoverningWindDirection.Name, properties.WindDirection);
+ Assert.AreEqual(generalResult.Stochasts, properties.AlphaValues);
+ Assert.AreEqual(generalResult.Stochasts, properties.Durations);
+ Assert.AreEqual(expectedFaultTreeIllustrationPointBaseProperty[0].WindDirection, properties.IllustrationPoints[0].WindDirection);
+ Assert.AreEqual(expectedFaultTreeIllustrationPointBaseProperty[0].Reliability, properties.IllustrationPoints[0].Reliability);
+ Assert.AreEqual(expectedFaultTreeIllustrationPointBaseProperty[0].CalculatedProbability, properties.IllustrationPoints[0].CalculatedProbability);
+ Assert.AreEqual(expectedFaultTreeIllustrationPointBaseProperty[0].ClosingSituation, properties.IllustrationPoints[0].ClosingSituation);
+ Assert.AreEqual(expectedFaultTreeIllustrationPointBaseProperty[0].IllustrationPoints, properties.IllustrationPoints[0].IllustrationPoints);
}
[Test]