Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Result/MacroStabilityInwardsSliceResult.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Result/MacroStabilityInwardsSliceResult.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Result/MacroStabilityInwardsSliceResult.cs (revision f79fd1627089fd5c8887fd7c19ca5e75df6db29d) @@ -0,0 +1,512 @@ +// 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.Base.Geometry; + +namespace Ringtoets.MacroStabilityInwards.KernelWrapper.Result +{ + /// + /// The slice result of a macro stability calculation. + /// + public class MacroStabilityInwardsSliceResult + { + /// + /// Creates a new instance of . + /// + /// The top left point of the slice. + /// The top right point of the slice. + /// The bottom left point of the slice. + /// The bottom right point of the slice. + /// The object containing the values for the properties + /// of the new . + /// Thrown when any parameter is null. + public MacroStabilityInwardsSliceResult(Point2D topLeftPoint, Point2D topRightPoint, + Point2D bottomLeftPoint, Point2D bottomRightPoint, + ConstructionProperties properties) + { + if (topLeftPoint == null) + { + throw new ArgumentNullException(nameof(topLeftPoint)); + } + if (topRightPoint == null) + { + throw new ArgumentNullException(nameof(topRightPoint)); + } + if (bottomLeftPoint == null) + { + throw new ArgumentNullException(nameof(bottomLeftPoint)); + } + if (bottomRightPoint == null) + { + throw new ArgumentNullException(nameof(bottomRightPoint)); + } + if (properties == null) + { + throw new ArgumentNullException(nameof(properties)); + } + + TopLeftPoint = topLeftPoint; + TopRightPoint = topRightPoint; + BottomLeftPoint = bottomLeftPoint; + BottomRightPoint = bottomRightPoint; + + Cohesion = properties.Cohesion; + FrictionAngle = properties.FrictionAngle; + CriticalPressure = properties.CriticalPressure; + OverConsolidationRatio = properties.OverConsolidationRatio; + Pop = properties.Pop; + DegreeOfConsolidationPorePressureSoil = properties.DegreeOfConsolidationPorePressureSoil; + DegreeOfConsolidationPorePressureLoad = properties.DegreeOfConsolidationPorePressureLoad; + Dilatancy = properties.Dilatancy; + ExternalLoad = properties.ExternalLoad; + HydrostaticPorePressure = properties.HydrostaticPorePressure; + LeftForce = properties.LeftForce; + LeftForceAngle = properties.LeftForceAngle; + LeftForceY = properties.LeftForceY; + RightForce = properties.RightForce; + RightForceAngle = properties.RightForceAngle; + RightForceY = properties.RightForceY; + LoadStress = properties.LoadStress; + NormalStress = properties.NormalStress; + PorePressure = properties.PorePressure; + HorizontalPorePressure = properties.HorizontalPorePressure; + VerticalPorePressure = properties.VerticalPorePressure; + PiezometricPorePressure = properties.PiezometricPorePressure; + EffectiveStress = properties.EffectiveStress; + EffectiveStressDaily = properties.EffectiveStressDaily; + ExcessPorePressure = properties.ExcessPorePressure; + ShearStress = properties.ShearStress; + SoilStress = properties.SoilStress; + TotalPorePressure = properties.TotalPorePressure; + TotalStress = properties.TotalStress; + Weight = properties.Weight; + } + + /// + /// Gets the top left point. + /// + public Point2D TopLeftPoint { get; } + + /// + /// Gets the top right point. + /// + public Point2D TopRightPoint { get; } + + /// + /// Gets the bottom left point. + /// + public Point2D BottomLeftPoint { get; } + + /// + /// Gets the bottom right point. + /// + public Point2D BottomRightPoint { get; } + + /// + /// Gets the cohesion. + /// [kN/m²] + /// + public double Cohesion { get; } + + /// + /// Gets the friction angle. + /// [°] + /// + public double FrictionAngle { get; } + + /// + /// Gets the critical pressure. + /// + public double CriticalPressure { get; } + + /// + /// Gets the OCR. + /// [-] + /// + public double OverConsolidationRatio { get; } + + /// + /// Gets the POP. + /// [kN/m²] + /// + public double Pop { get; } + + /// + /// Gets the pore pressure from degree of consolidation soil. + /// [kN/m²] + /// + public double DegreeOfConsolidationPorePressureSoil { get; } + + /// + /// Gets the pore pressure from degree of consolidation load. + /// [kN/m²] + /// + public double DegreeOfConsolidationPorePressureLoad { get; } + + /// + /// Gets the dilatancy of the slice. + /// + public double Dilatancy { get; } + + /// + /// Gets the external load. + /// [kN/m²] + /// + public double ExternalLoad { get; } + + /// + /// Gets the hydraostatic pore pressure. + /// [kN/m²] + /// + public double HydrostaticPorePressure { get; } + + /// + /// Gets the left force. + /// + public double LeftForce { get; } + + /// + /// Gets the left force angle. + /// [°] + /// + public double LeftForceAngle { get; } + + /// + /// Gets the left force y. + /// + public double LeftForceY { get; } + + /// + /// Gets the right force. + /// + public double RightForce { get; } + + /// + /// Gets the right force angle. + /// [°] + /// + public double RightForceAngle { get; } + + /// + /// Gets the right force y. + /// + public double RightForceY { get; } + + /// + /// Gets the load stress. + /// [kN/m²] + /// + public double LoadStress { get; } + + /// + /// Gets the normal stress. + /// [kN/m²] + /// + public double NormalStress { get; } + + /// + /// Gets the pore pressure. + /// [kN/m²] + /// + public double PorePressure { get; } + + /// + /// Gets the horizontal pore pressure. + /// [kN/m²] + /// + public double HorizontalPorePressure { get; } + + /// + /// Gets the vertical pore pressure. + /// [kN/m²] + /// + public double VerticalPorePressure { get; } + + /// + /// Gets the piezometric pore pressure. + /// [kN/m²] + /// + public double PiezometricPorePressure { get; } + + /// + /// Gets the effective stress. + /// [kN/m²] + /// + public double EffectiveStress { get; } + + /// + /// Gets the daily effective stress. + /// [kN/m²] + /// + public double EffectiveStressDaily { get; } + + /// + /// Gets the excess pore pressure. + /// [kN/m²] + /// + public double ExcessPorePressure { get; } + + /// + /// Gets the shear stress. + /// [kN/m²] + /// + public double ShearStress { get; } + + /// + /// Gets the soil stress. + /// [kN/m²] + /// + public double SoilStress { get; } + + /// + /// Gets the total pore pressure. + /// [kN/m²] + /// + public double TotalPorePressure { get; } + + /// + /// Gets the total stress. + /// [kN/m²] + /// + public double TotalStress { get; } + + /// + /// Gets the weight. + /// [kN/m] + /// + public double Weight { get; } + + public class ConstructionProperties + { + /// + /// Creates a new instance of . + /// + public ConstructionProperties() + { + Cohesion = double.NaN; + FrictionAngle = double.NaN; + CriticalPressure = double.NaN; + OverConsolidationRatio = double.NaN; + Pop = double.NaN; + DegreeOfConsolidationPorePressureSoil = double.NaN; + DegreeOfConsolidationPorePressureLoad = double.NaN; + Dilatancy = double.NaN; + ExternalLoad = double.NaN; + HydrostaticPorePressure = double.NaN; + LeftForce = double.NaN; + LeftForceAngle = double.NaN; + LeftForceY = double.NaN; + RightForce = double.NaN; + RightForceAngle = double.NaN; + RightForceY = double.NaN; + LoadStress = double.NaN; + NormalStress = double.NaN; + PorePressure = double.NaN; + HorizontalPorePressure = double.NaN; + VerticalPorePressure = double.NaN; + PiezometricPorePressure = double.NaN; + EffectiveStress = double.NaN; + EffectiveStressDaily = double.NaN; + ExcessPorePressure = double.NaN; + ShearStress = double.NaN; + SoilStress = double.NaN; + TotalPorePressure = double.NaN; + TotalStress = double.NaN; + Weight = double.NaN; + } + + /// + /// Gets or sets the cohesion. + /// [kN/m²] + /// + public double Cohesion { internal get; set; } + + /// + /// Gets or sets the friction angle. + /// [°] + /// + public double FrictionAngle { internal get; set; } + + /// + /// Gets or sets the critical pressure. + /// + public double CriticalPressure { internal get; set; } + + /// + /// Gets or sets the OCR. + /// [-] + /// + public double OverConsolidationRatio { internal get; set; } + + /// + /// Gets or sets the POP. + /// [kN/m²] + /// + public double Pop { internal get; set; } + + /// + /// Gets or sets the pore pressure from degree of consolidation soil. + /// [kN/m²] + /// + public double DegreeOfConsolidationPorePressureSoil { internal get; set; } + + /// + /// Gets or sets the pore pressure from degree of consolidation load. + /// [kN/m²] + /// + public double DegreeOfConsolidationPorePressureLoad { internal get; set; } + + /// + /// Gets or sets the dilatancy of the slice. + /// + public double Dilatancy { internal get; set; } + + /// + /// Gets or sets the external load. + /// [kN/m²] + /// + public double ExternalLoad { internal get; set; } + + /// + /// Gets or sets the hydraostatic pore pressure. + /// [kN/m²] + /// + public double HydrostaticPorePressure { internal get; set; } + + /// + /// Gets or sets the left force. + /// + public double LeftForce { internal get; set; } + + /// + /// Gets or sets the left force angle. + /// [°] + /// + public double LeftForceAngle { internal get; set; } + + /// + /// Gets or sets the left force y. + /// + public double LeftForceY { internal get; set; } + + /// + /// Gets or sets the right force. + /// + public double RightForce { internal get; set; } + + /// + /// Gets or sets the right force angle. + /// [°] + /// + public double RightForceAngle { internal get; set; } + + /// + /// Gets or sets the right force y. + /// + public double RightForceY { internal get; set; } + + /// + /// Gets or sets the load stress. + /// [kN/m²] + /// + public double LoadStress { internal get; set; } + + /// + /// Gets or sets the normal stress. + /// [kN/m²] + /// + public double NormalStress { internal get; set; } + + /// + /// Gets or sets the pore pressure. + /// [kN/m²] + /// + public double PorePressure { internal get; set; } + + /// + /// Gets or sets the horizontal pore pressure. + /// [kN/m²] + /// + public double HorizontalPorePressure { internal get; set; } + + /// + /// Gets or sets the vertical pore pressure. + /// [kN/m²] + /// + public double VerticalPorePressure { internal get; set; } + + /// + /// Gets or sets the piezometric pore pressure. + /// [kN/m²] + /// + public double PiezometricPorePressure { internal get; set; } + + /// + /// Gets or sets the effective stress. + /// [kN/m²] + /// + public double EffectiveStress { internal get; set; } + + /// + /// Gets or sets the daily effective stress. + /// [kN/m²] + /// + public double EffectiveStressDaily { internal get; set; } + + /// + /// Gets or sets the excess pore pressure. + /// [kN/m²] + /// + public double ExcessPorePressure { internal get; set; } + + /// + /// Gets or sets the shear stress. + /// [kN/m²] + /// + public double ShearStress { internal get; set; } + + /// + /// Gets or sets the soil stress. + /// [kN/m²] + /// + public double SoilStress { internal get; set; } + + /// + /// Gets or sets the total pore pressure. + /// [kN/m²] + /// + public double TotalPorePressure { internal get; set; } + + /// + /// Gets or sets the total stress. + /// [kN/m²] + /// + public double TotalStress { internal get; set; } + + /// + /// Gets or sets the weight. + /// [kN/m] + /// + public double Weight { internal get; set; } + } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Result/MacroStabilityInwardsSlidingCircleResult.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Result/MacroStabilityInwardsSlidingCircleResult.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Result/MacroStabilityInwardsSlidingCircleResult.cs (revision f79fd1627089fd5c8887fd7c19ca5e75df6db29d) @@ -0,0 +1,96 @@ +// 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.Base.Geometry; + +namespace Ringtoets.MacroStabilityInwards.KernelWrapper.Result +{ + /// + /// The sliding circle result of a macro stability calculation. + /// + public class MacroStabilityInwardsSlidingCircleResult + { + /// + /// Creates a new instance of . + /// + /// The center coordinate of the circle. + /// The radius of the circle. + /// Indicator whether the circle is active or not. + /// The non iterated force of the circle. + /// The iterated force of the circle. + /// The driving moment of the circle. + /// The resisting moment of the circle. + /// Thrown when + /// is null. + public MacroStabilityInwardsSlidingCircleResult(Point2D center, double radius, bool isActive, + double nonIteratedForce, double iteratedForce, + double drivingMoment, double resistingMoment) + { + if (center == null) + { + throw new ArgumentNullException(nameof(center)); + } + Center = center; + Radius = radius; + IsActive = isActive; + NonIteratedForce = nonIteratedForce; + IteratedForce = iteratedForce; + DrivingMoment = drivingMoment; + ResistingMoment = resistingMoment; + } + + /// + /// Gets the center coordinate of the circle. + /// + public Point2D Center { get; } + + /// + /// Gets the radius of the circle. + /// + public double Radius { get; } + + /// + /// Gets whether the circle is the active circle or not. + /// + public bool IsActive { get; } + + /// + /// Gets the non iterated force of the circle. + /// + public double NonIteratedForce { get; } + + /// + /// Gets the iterated force of the circle. + /// + public double IteratedForce { get; } + + /// + /// Gets the driving moment of the circle. + /// + public double DrivingMoment { get; } + + /// + /// Gets the resisting moment of the circle. + /// + public double ResistingMoment { get; } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Result/MacroStabilityInwardsSlidingCurveResult.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Result/MacroStabilityInwardsSlidingCurveResult.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Result/MacroStabilityInwardsSlidingCurveResult.cs (revision f79fd1627089fd5c8887fd7c19ca5e75df6db29d) @@ -0,0 +1,92 @@ +// 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 System.Collections.Generic; + +namespace Ringtoets.MacroStabilityInwards.KernelWrapper.Result +{ + /// + /// The sliding curve result of a macro stability calculation. + /// + public class MacroStabilityInwardsSlidingCurveResult + { + /// + /// Creates a new instance of . + /// + /// The left circle of the curve. + /// The right circle of the curve. + /// The slices of the curve. + /// The non iterated horizontal + /// force of the curve. + /// The iterated horizontal force + /// of the curve. + /// Thrown when any parameter + /// is null. + public MacroStabilityInwardsSlidingCurveResult(MacroStabilityInwardsSlidingCircleResult leftCircle, MacroStabilityInwardsSlidingCircleResult rightCircle, + IEnumerable slices, double nonIteratedHorizontalForce, double iteratedHorizontalForce) + { + if (leftCircle == null) + { + throw new ArgumentNullException(nameof(leftCircle)); + } + if (rightCircle == null) + { + throw new ArgumentNullException(nameof(rightCircle)); + } + if (slices == null) + { + throw new ArgumentNullException(nameof(slices)); + } + + LeftCircle = leftCircle; + RightCircle = rightCircle; + Slices = slices; + NonIteratedHorizontalForce = nonIteratedHorizontalForce; + IteratedHorizontalForce = iteratedHorizontalForce; + } + + /// + /// Gets the left circle. + /// + public MacroStabilityInwardsSlidingCircleResult LeftCircle { get; } + + /// + /// Gets the right circle. + /// + public MacroStabilityInwardsSlidingCircleResult RightCircle { get; } + + /// + /// Gets the slices. + /// + public IEnumerable Slices { get; } + + /// + /// Gets the non iterated horizontal force. + /// + public double NonIteratedHorizontalForce { get; } + + /// + /// Gets the iterated horizontal force. + /// + public double IteratedHorizontalForce { get; } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Ringtoets.MacroStabilityInwards.KernelWrapper.csproj =================================================================== diff -u -r177ec6713fcf4dbdbc5fd2a542fb7bfa6554e1ff -rf79fd1627089fd5c8887fd7c19ca5e75df6db29d --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Ringtoets.MacroStabilityInwards.KernelWrapper.csproj (.../Ringtoets.MacroStabilityInwards.KernelWrapper.csproj) (revision 177ec6713fcf4dbdbc5fd2a542fb7bfa6554e1ff) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.KernelWrapper/Ringtoets.MacroStabilityInwards.KernelWrapper.csproj (.../Ringtoets.MacroStabilityInwards.KernelWrapper.csproj) (revision f79fd1627089fd5c8887fd7c19ca5e75df6db29d) @@ -52,6 +52,9 @@ + + + Fisheye: Tag f79fd1627089fd5c8887fd7c19ca5e75df6db29d refers to a dead (removed) revision in file `Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/Output/MacroStabilityInwardsSlice.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag f79fd1627089fd5c8887fd7c19ca5e75df6db29d refers to a dead (removed) revision in file `Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/Output/MacroStabilityInwardsSlidingCircle.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag f79fd1627089fd5c8887fd7c19ca5e75df6db29d refers to a dead (removed) revision in file `Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/Output/MacroStabilityInwardsSlidingCurve.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/Ringtoets.MacroStabilityInwards.Primitives.csproj =================================================================== diff -u -rf7f2fb5812d9a3c71a95f13140e8dd22f85768fa -rf79fd1627089fd5c8887fd7c19ca5e75df6db29d --- Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/Ringtoets.MacroStabilityInwards.Primitives.csproj (.../Ringtoets.MacroStabilityInwards.Primitives.csproj) (revision f7f2fb5812d9a3c71a95f13140e8dd22f85768fa) +++ Ringtoets/MacroStabilityInwards/src/Ringtoets.MacroStabilityInwards.Primitives/Ringtoets.MacroStabilityInwards.Primitives.csproj (.../Ringtoets.MacroStabilityInwards.Primitives.csproj) (revision f79fd1627089fd5c8887fd7c19ca5e75df6db29d) @@ -54,9 +54,6 @@ - - - Resources.resx Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Result/MacroStabilityInwardsSliceResultTest.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Result/MacroStabilityInwardsSliceResultTest.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Result/MacroStabilityInwardsSliceResultTest.cs (revision f79fd1627089fd5c8887fd7c19ca5e75df6db29d) @@ -0,0 +1,259 @@ +// 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.Base.Geometry; +using NUnit.Framework; +using Ringtoets.MacroStabilityInwards.KernelWrapper.Result; + +namespace Ringtoets.MacroStabilityInwards.KernelWrapper.Test.Result +{ + [TestFixture] + public class MacroStabilityInwardsSliceResultTest + { + [Test] + public void Constructor_TopLeftPointNull_ThrowsArgumentNullException() + { + // Call + TestDelegate call = () => new MacroStabilityInwardsSliceResult(null, new Point2D(0, 0), new Point2D(0, 0), new Point2D(0, 0), + new MacroStabilityInwardsSliceResult.ConstructionProperties()); + + // Assert + var exception = Assert.Throws(call); + Assert.AreEqual("topLeftPoint", exception.ParamName); + } + + [Test] + public void Constructor_TopRightPointNull_ThrowsArgumentNullException() + { + // Call + TestDelegate call = () => new MacroStabilityInwardsSliceResult(new Point2D(0, 0), null, new Point2D(0, 0), new Point2D(0, 0), + new MacroStabilityInwardsSliceResult.ConstructionProperties()); + + // Assert + var exception = Assert.Throws(call); + Assert.AreEqual("topRightPoint", exception.ParamName); + } + + [Test] + public void Constructor_BottomLeftPointNull_ThrowsArgumentNullException() + { + // Call + TestDelegate call = () => new MacroStabilityInwardsSliceResult(new Point2D(0, 0), new Point2D(0, 0), null, new Point2D(0, 0), + new MacroStabilityInwardsSliceResult.ConstructionProperties()); + + // Assert + var exception = Assert.Throws(call); + Assert.AreEqual("bottomLeftPoint", exception.ParamName); + } + + [Test] + public void Constructor_BottomRightPointNull_ThrowsArgumentNullException() + { + // Call + TestDelegate call = () => new MacroStabilityInwardsSliceResult(new Point2D(0, 0), new Point2D(0, 0), new Point2D(0, 0), null, + new MacroStabilityInwardsSliceResult.ConstructionProperties()); + + // Assert + var exception = Assert.Throws(call); + Assert.AreEqual("bottomRightPoint", exception.ParamName); + } + + [Test] + public void Constructor_ConstructionPropertiesNull_ThrowsArgumentNullException() + { + // Call + TestDelegate call = () => new MacroStabilityInwardsSliceResult(new Point2D(0, 0), new Point2D(0, 0), new Point2D(0, 0), new Point2D(0, 0), null); + + // Assert + var exception = Assert.Throws(call); + Assert.AreEqual("properties", exception.ParamName); + } + + [Test] + public void Constructor_WithCoordinates_ExpectedValues() + { + // Setup + var topLeftPoint = new Point2D(0, 0); + var topRightPoint = new Point2D(1, 1); + var bottomLeftPoint = new Point2D(2, 2); + var bottomRightPoint = new Point2D(3, 3); + + // Call + var slice = new MacroStabilityInwardsSliceResult(topLeftPoint, topRightPoint, bottomLeftPoint, bottomRightPoint, + new MacroStabilityInwardsSliceResult.ConstructionProperties()); + + // Assert + Assert.AreEqual(topLeftPoint, slice.TopLeftPoint); + Assert.AreEqual(topRightPoint, slice.TopRightPoint); + Assert.AreEqual(bottomLeftPoint, slice.BottomLeftPoint); + Assert.AreEqual(bottomRightPoint, slice.BottomRightPoint); + } + + [Test] + public void Constructor_ConstructionPropertiesEmpty_ExpectedValues() + { + // Call + var slice = new MacroStabilityInwardsSliceResult(new Point2D(0, 0), new Point2D(0, 0), new Point2D(0, 0), new Point2D(0, 0), + new MacroStabilityInwardsSliceResult.ConstructionProperties()); + + // Assert + Assert.IsNaN(slice.Cohesion); + Assert.IsNaN(slice.FrictionAngle); + Assert.IsNaN(slice.CriticalPressure); + Assert.IsNaN(slice.OverConsolidationRatio); + Assert.IsNaN(slice.Pop); + Assert.IsNaN(slice.DegreeOfConsolidationPorePressureSoil); + Assert.IsNaN(slice.DegreeOfConsolidationPorePressureLoad); + Assert.IsNaN(slice.Dilatancy); + Assert.IsNaN(slice.ExternalLoad); + Assert.IsNaN(slice.HydrostaticPorePressure); + Assert.IsNaN(slice.LeftForce); + Assert.IsNaN(slice.LeftForceAngle); + Assert.IsNaN(slice.LeftForceY); + Assert.IsNaN(slice.RightForce); + Assert.IsNaN(slice.RightForceAngle); + Assert.IsNaN(slice.RightForceY); + Assert.IsNaN(slice.LoadStress); + Assert.IsNaN(slice.NormalStress); + Assert.IsNaN(slice.PorePressure); + Assert.IsNaN(slice.HorizontalPorePressure); + Assert.IsNaN(slice.VerticalPorePressure); + Assert.IsNaN(slice.PiezometricPorePressure); + Assert.IsNaN(slice.EffectiveStress); + Assert.IsNaN(slice.EffectiveStressDaily); + Assert.IsNaN(slice.ExcessPorePressure); + Assert.IsNaN(slice.ShearStress); + Assert.IsNaN(slice.SoilStress); + Assert.IsNaN(slice.TotalPorePressure); + Assert.IsNaN(slice.TotalStress); + Assert.IsNaN(slice.Weight); + } + + [Test] + public void Constructor_ConstructionPropertiesSet_ExpectedValues() + { + // Setup + var random = new Random(21); + double cohesion = random.NextDouble(); + double frictionAngle = random.NextDouble(); + double criticalPressure = random.NextDouble(); + double overConsolidationRatio = random.NextDouble(); + double pop = random.NextDouble(); + double degreeOfConsolidationPorePressureSoil = random.NextDouble(); + double degreeOfConsolidationPorePressureLoad = random.NextDouble(); + double dilatancy = random.NextDouble(); + double externalLoad = random.NextDouble(); + double hydrostaticPorePressure = random.NextDouble(); + double leftForce = random.NextDouble(); + double leftForceAngle = random.NextDouble(); + double leftForceY = random.NextDouble(); + double rightForce = random.NextDouble(); + double rightForceAngle = random.NextDouble(); + double rightForceY = random.NextDouble(); + double loadStress = random.NextDouble(); + double normalStress = random.NextDouble(); + double porePressure = random.NextDouble(); + double horizontalPorePressure = random.NextDouble(); + double verticalPorePressure = random.NextDouble(); + double piezometricPorePressure = random.NextDouble(); + double effectiveStress = random.NextDouble(); + double effectiveStressDaily = random.NextDouble(); + double excessPorePressure = random.NextDouble(); + double shearStress = random.NextDouble(); + double soilStress = random.NextDouble(); + double totalPorePressure = random.NextDouble(); + double totalStress = random.NextDouble(); + double weight = random.NextDouble(); + + var properties = new MacroStabilityInwardsSliceResult.ConstructionProperties + { + Cohesion = cohesion, + FrictionAngle = frictionAngle, + CriticalPressure = criticalPressure, + OverConsolidationRatio = overConsolidationRatio, + DegreeOfConsolidationPorePressureSoil = degreeOfConsolidationPorePressureSoil, + DegreeOfConsolidationPorePressureLoad = degreeOfConsolidationPorePressureLoad, + Pop = pop, + Dilatancy = dilatancy, + ExternalLoad = externalLoad, + HydrostaticPorePressure = hydrostaticPorePressure, + LeftForce = leftForce, + LeftForceAngle = leftForceAngle, + LeftForceY = leftForceY, + RightForce = rightForce, + RightForceAngle = rightForceAngle, + RightForceY = rightForceY, + LoadStress = loadStress, + NormalStress = normalStress, + PorePressure = porePressure, + HorizontalPorePressure = horizontalPorePressure, + VerticalPorePressure = verticalPorePressure, + PiezometricPorePressure = piezometricPorePressure, + EffectiveStress = effectiveStress, + EffectiveStressDaily = effectiveStressDaily, + ExcessPorePressure = excessPorePressure, + ShearStress = shearStress, + SoilStress = soilStress, + TotalPorePressure = totalPorePressure, + TotalStress = totalStress, + Weight = weight + }; + + // Call + var slice = new MacroStabilityInwardsSliceResult(new Point2D(0, 0), new Point2D(0, 0), + new Point2D(0, 0), new Point2D(0, 0), + properties); + + // Assert + Assert.AreEqual(cohesion, slice.Cohesion); + Assert.AreEqual(frictionAngle, slice.FrictionAngle); + Assert.AreEqual(criticalPressure, slice.CriticalPressure); + Assert.AreEqual(overConsolidationRatio, slice.OverConsolidationRatio); + Assert.AreEqual(pop, slice.Pop); + Assert.AreEqual(degreeOfConsolidationPorePressureSoil, slice.DegreeOfConsolidationPorePressureSoil); + Assert.AreEqual(degreeOfConsolidationPorePressureLoad, slice.DegreeOfConsolidationPorePressureLoad); + Assert.AreEqual(dilatancy, slice.Dilatancy); + Assert.AreEqual(externalLoad, slice.ExternalLoad); + Assert.AreEqual(hydrostaticPorePressure, slice.HydrostaticPorePressure); + Assert.AreEqual(leftForce, slice.LeftForce); + Assert.AreEqual(leftForceAngle, slice.LeftForceAngle); + Assert.AreEqual(leftForceY, slice.LeftForceY); + Assert.AreEqual(rightForce, slice.RightForce); + Assert.AreEqual(rightForceAngle, slice.RightForceAngle); + Assert.AreEqual(rightForceY, slice.RightForceY); + Assert.AreEqual(loadStress, slice.LoadStress); + Assert.AreEqual(normalStress, slice.NormalStress); + Assert.AreEqual(porePressure, slice.PorePressure); + Assert.AreEqual(horizontalPorePressure, slice.HorizontalPorePressure); + Assert.AreEqual(verticalPorePressure, slice.VerticalPorePressure); + Assert.AreEqual(piezometricPorePressure, slice.PiezometricPorePressure); + Assert.AreEqual(effectiveStress, slice.EffectiveStress); + Assert.AreEqual(effectiveStressDaily, slice.EffectiveStressDaily); + Assert.AreEqual(excessPorePressure, slice.ExcessPorePressure); + Assert.AreEqual(shearStress, slice.ShearStress); + Assert.AreEqual(soilStress, slice.SoilStress); + Assert.AreEqual(totalPorePressure, slice.TotalPorePressure); + Assert.AreEqual(totalStress, slice.TotalStress); + Assert.AreEqual(weight, slice.Weight); + } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Result/MacroStabilityInwardsSlidingCircleResultTest.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Result/MacroStabilityInwardsSlidingCircleResultTest.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Result/MacroStabilityInwardsSlidingCircleResultTest.cs (revision f79fd1627089fd5c8887fd7c19ca5e75df6db29d) @@ -0,0 +1,70 @@ +// 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.Base.Geometry; +using Core.Common.TestUtil; +using NUnit.Framework; +using Ringtoets.MacroStabilityInwards.KernelWrapper.Result; + +namespace Ringtoets.MacroStabilityInwards.KernelWrapper.Test.Result +{ + [TestFixture] + public class MacroStabilityInwardsSlidingCircleResultTest + { + [Test] + public void Constructor_CenterNull_ThrowsArgumentNullException() + { + // Call + TestDelegate call = () => new MacroStabilityInwardsSlidingCircleResult(null, 0.1, true, 0.2, 0.3, 0.4, 0.5); + + // Assert + var exception = Assert.Throws(call); + Assert.AreEqual("center", exception.ParamName); + } + + [Test] + public void Constructor_ExpectedValues() + { + // Setup + var random = new Random(11); + var center = new Point2D(random.NextDouble(), random.NextDouble()); + double radius = random.NextDouble(); + bool isActive = random.NextBoolean(); + double nonIteratedForce = random.NextDouble(); + double iteratedForce = random.NextDouble(); + double drivingMoment = random.NextDouble(); + double resistingMoment = random.NextDouble(); + + // Call + var circle = new MacroStabilityInwardsSlidingCircleResult(center, radius, isActive, nonIteratedForce, iteratedForce, drivingMoment, resistingMoment); + + // Assert + Assert.AreEqual(center, circle.Center); + Assert.AreEqual(radius, circle.Radius); + Assert.AreEqual(isActive, circle.IsActive); + Assert.AreEqual(nonIteratedForce, circle.NonIteratedForce); + Assert.AreEqual(iteratedForce, circle.IteratedForce); + Assert.AreEqual(drivingMoment, circle.DrivingMoment); + Assert.AreEqual(resistingMoment, circle.ResistingMoment); + } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Result/MacroStabilityInwardsSlidingCurveResultTest.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Result/MacroStabilityInwardsSlidingCurveResultTest.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Result/MacroStabilityInwardsSlidingCurveResultTest.cs (revision f79fd1627089fd5c8887fd7c19ca5e75df6db29d) @@ -0,0 +1,104 @@ +// 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 System.Linq; +using Core.Common.Base.Geometry; +using NUnit.Framework; +using Ringtoets.MacroStabilityInwards.KernelWrapper.Result; +using Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil; +using Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.Result; + +namespace Ringtoets.MacroStabilityInwards.KernelWrapper.Test.Result +{ + [TestFixture] + public class MacroStabilityInwardsSlidingCurveResultTest + { + [Test] + public void Constructor_LeftCircleNull_ThrowsArgumentNullException() + { + // Setup + MacroStabilityInwardsSlidingCircleResult rightCircle = MacroStabilityInwardsSlidingCircleResultTestFactory.CreateCircle(); + + // Call + TestDelegate call = () => new MacroStabilityInwardsSlidingCurveResult(null, rightCircle, Enumerable.Empty(), 0, 0); + + // Assert + var exception = Assert.Throws(call); + Assert.AreEqual("leftCircle", exception.ParamName); + } + + [Test] + public void Constructor_RightCircleNull_ThrowsArgumentNullException() + { + // Setup + MacroStabilityInwardsSlidingCircleResult leftCircle = MacroStabilityInwardsSlidingCircleResultTestFactory.CreateCircle(); + + // Call + TestDelegate call = () => new MacroStabilityInwardsSlidingCurveResult(leftCircle, null, Enumerable.Empty(), 0, 0); + + // Assert + var exception = Assert.Throws(call); + Assert.AreEqual("rightCircle", exception.ParamName); + } + + [Test] + public void Constructor_SlicesNull_ThrowsArgumentNullException() + { + // Setup + MacroStabilityInwardsSlidingCircleResult circle = MacroStabilityInwardsSlidingCircleResultTestFactory.CreateCircle(); + + // Call + TestDelegate call = () => new MacroStabilityInwardsSlidingCurveResult(circle, circle, null, 0, 0); + + // Assert + var exception = Assert.Throws(call); + Assert.AreEqual("slices", exception.ParamName); + } + + [Test] + public void Constructor_ExpectedValues() + { + // Setup + var random = new Random(21); + MacroStabilityInwardsSlidingCircleResult rightCircle = MacroStabilityInwardsSlidingCircleResultTestFactory.CreateCircle(); + MacroStabilityInwardsSlidingCircleResult leftCircle = MacroStabilityInwardsSlidingCircleResultTestFactory.CreateCircle(); + var slices = new[] + { + new MacroStabilityInwardsSliceResult(new Point2D(0, 0), new Point2D(0, 0), new Point2D(0, 0), new Point2D(0, 0), + new MacroStabilityInwardsSliceResult.ConstructionProperties()) + }; + + double nonIteratedHorizontalForce = random.NextDouble(); + double iteratedHorizontalForce = random.NextDouble(); + + // Call + var curve = new MacroStabilityInwardsSlidingCurveResult(leftCircle, rightCircle, slices, nonIteratedHorizontalForce, iteratedHorizontalForce); + + // Assert + Assert.AreSame(leftCircle, curve.LeftCircle); + Assert.AreSame(rightCircle, curve.RightCircle); + Assert.AreEqual(nonIteratedHorizontalForce, curve.NonIteratedHorizontalForce); + Assert.AreEqual(iteratedHorizontalForce, curve.IteratedHorizontalForce); + CollectionAssert.AreEqual(slices, curve.Slices); + } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test.csproj =================================================================== diff -u -r24e1e4829bf944498aee7a59afb0c0788455a0c9 -rf79fd1627089fd5c8887fd7c19ca5e75df6db29d --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test.csproj (.../Ringtoets.MacroStabilityInwards.KernelWrapper.Test.csproj) (revision 24e1e4829bf944498aee7a59afb0c0788455a0c9) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test/Ringtoets.MacroStabilityInwards.KernelWrapper.Test.csproj (.../Ringtoets.MacroStabilityInwards.KernelWrapper.Test.csproj) (revision f79fd1627089fd5c8887fd7c19ca5e75df6db29d) @@ -69,6 +69,9 @@ + + + Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.Test/Result/MacroStabilityInwardsSlidingCircleResultTestFactoryTest.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.Test/Result/MacroStabilityInwardsSlidingCircleResultTestFactoryTest.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.Test/Result/MacroStabilityInwardsSlidingCircleResultTestFactoryTest.cs (revision f79fd1627089fd5c8887fd7c19ca5e75df6db29d) @@ -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 Core.Common.Base.Geometry; +using NUnit.Framework; +using Ringtoets.MacroStabilityInwards.KernelWrapper.Result; +using Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.Result; + +namespace Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.Test.Result +{ + [TestFixture] + public class MacroStabilityInwardsSlidingCircleResultTestFactoryTest + { + [Test] + public void Create_Always_ReturnCircleWithDefaultValues() + { + // Call + MacroStabilityInwardsSlidingCircleResult circle = MacroStabilityInwardsSlidingCircleResultTestFactory.CreateCircle(); + + // Assert + Assert.AreEqual(new Point2D(0, 0), circle.Center); + Assert.AreEqual(0.1, circle.Radius); + Assert.IsTrue(circle.IsActive); + Assert.AreEqual(0.2, circle.NonIteratedForce); + Assert.AreEqual(0.3, circle.IteratedForce); + Assert.AreEqual(0.4, circle.DrivingMoment); + Assert.AreEqual(0.5, circle.ResistingMoment); + } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.Test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.Test.csproj =================================================================== diff -u -r24e1e4829bf944498aee7a59afb0c0788455a0c9 -rf79fd1627089fd5c8887fd7c19ca5e75df6db29d --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.Test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.Test.csproj (.../Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.Test.csproj) (revision 24e1e4829bf944498aee7a59afb0c0788455a0c9) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.Test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.Test.csproj (.../Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.Test.csproj) (revision f79fd1627089fd5c8887fd7c19ca5e75df6db29d) @@ -51,6 +51,7 @@ Properties\GlobalAssembly.cs + @@ -66,6 +67,10 @@ + + {3BBFD65B-B277-4E50-AE6D-BD24C3434609} + Core.Common.Base + {3c0d3b38-a9f7-4b22-9705-513da26ae2cc} Ringtoets.MacroStabilityInwards.KernelWrapper Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil/Result/MacroStabilityInwardsSlidingCircleResultTestFactory.cs =================================================================== diff -u --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil/Result/MacroStabilityInwardsSlidingCircleResultTestFactory.cs (revision 0) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil/Result/MacroStabilityInwardsSlidingCircleResultTestFactory.cs (revision f79fd1627089fd5c8887fd7c19ca5e75df6db29d) @@ -0,0 +1,42 @@ +// 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 Core.Common.Base.Geometry; +using Ringtoets.MacroStabilityInwards.KernelWrapper.Result; + +namespace Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.Result +{ + /// + /// Factory to create simple + /// instances that can be used for testing. + /// + public static class MacroStabilityInwardsSlidingCircleResultTestFactory + { + /// + /// Creates a new . + /// + /// The created . + public static MacroStabilityInwardsSlidingCircleResult CreateCircle() + { + return new MacroStabilityInwardsSlidingCircleResult(new Point2D(0, 0), 0.1, true, 0.2, 0.3, 0.4, 0.5); + } + } +} \ No newline at end of file Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.csproj =================================================================== diff -u -rf2ba7f68f5de2fc3c8dec8baf7326808120cee52 -rf79fd1627089fd5c8887fd7c19ca5e75df6db29d --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.csproj (.../Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.csproj) (revision f2ba7f68f5de2fc3c8dec8baf7326808120cee52) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil/Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.csproj (.../Ringtoets.MacroStabilityInwards.KernelWrapper.TestUtil.csproj) (revision f79fd1627089fd5c8887fd7c19ca5e75df6db29d) @@ -52,6 +52,7 @@ Properties\GlobalAssembly.cs + @@ -61,6 +62,10 @@ + + {3bbfd65b-b277-4e50-ae6d-bd24c3434609} + Core.Common.Base + {3c0d3b38-a9f7-4b22-9705-513da26ae2cc} Ringtoets.MacroStabilityInwards.KernelWrapper Fisheye: Tag f79fd1627089fd5c8887fd7c19ca5e75df6db29d refers to a dead (removed) revision in file `Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.Test/Output/MacroStabilityInwardsSliceTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag f79fd1627089fd5c8887fd7c19ca5e75df6db29d refers to a dead (removed) revision in file `Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.Test/Output/MacroStabilityInwardsSlidingCircleTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag f79fd1627089fd5c8887fd7c19ca5e75df6db29d refers to a dead (removed) revision in file `Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.Test/Output/MacroStabilityInwardsSlidingCurveTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.Test/Ringtoets.MacroStabilityInwards.Primitives.Test.csproj =================================================================== diff -u -r24e1e4829bf944498aee7a59afb0c0788455a0c9 -rf79fd1627089fd5c8887fd7c19ca5e75df6db29d --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.Test/Ringtoets.MacroStabilityInwards.Primitives.Test.csproj (.../Ringtoets.MacroStabilityInwards.Primitives.Test.csproj) (revision 24e1e4829bf944498aee7a59afb0c0788455a0c9) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.Test/Ringtoets.MacroStabilityInwards.Primitives.Test.csproj (.../Ringtoets.MacroStabilityInwards.Primitives.Test.csproj) (revision f79fd1627089fd5c8887fd7c19ca5e75df6db29d) @@ -64,9 +64,6 @@ - - - Fisheye: Tag f79fd1627089fd5c8887fd7c19ca5e75df6db29d refers to a dead (removed) revision in file `Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.TestUtil.Test/MacroStabilityInwardsSlidingCircleTestFactoryTest.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.TestUtil.Test/Ringtoets.MacroStabilityInwards.Primitives.TestUtil.Test.csproj =================================================================== diff -u -r24e1e4829bf944498aee7a59afb0c0788455a0c9 -rf79fd1627089fd5c8887fd7c19ca5e75df6db29d --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.TestUtil.Test/Ringtoets.MacroStabilityInwards.Primitives.TestUtil.Test.csproj (.../Ringtoets.MacroStabilityInwards.Primitives.TestUtil.Test.csproj) (revision 24e1e4829bf944498aee7a59afb0c0788455a0c9) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.TestUtil.Test/Ringtoets.MacroStabilityInwards.Primitives.TestUtil.Test.csproj (.../Ringtoets.MacroStabilityInwards.Primitives.TestUtil.Test.csproj) (revision f79fd1627089fd5c8887fd7c19ca5e75df6db29d) @@ -51,7 +51,6 @@ Properties\GlobalAssembly.cs - Fisheye: Tag f79fd1627089fd5c8887fd7c19ca5e75df6db29d refers to a dead (removed) revision in file `Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.TestUtil/MacroStabilityInwardsSlidingCircleTestFactory.cs'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.TestUtil/Ringtoets.MacroStabilityInwards.Primitives.TestUtil.csproj =================================================================== diff -u -r1ed3d9d4658bd127779e9e818d73cb2e478c6b78 -rf79fd1627089fd5c8887fd7c19ca5e75df6db29d --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.TestUtil/Ringtoets.MacroStabilityInwards.Primitives.TestUtil.csproj (.../Ringtoets.MacroStabilityInwards.Primitives.TestUtil.csproj) (revision 1ed3d9d4658bd127779e9e818d73cb2e478c6b78) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Primitives.TestUtil/Ringtoets.MacroStabilityInwards.Primitives.TestUtil.csproj (.../Ringtoets.MacroStabilityInwards.Primitives.TestUtil.csproj) (revision f79fd1627089fd5c8887fd7c19ca5e75df6db29d) @@ -47,7 +47,6 @@ Properties\GlobalAssembly.cs -