Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionOutwards/GrassCoverErosionOutwardsFailureMechanismSectionResultCreateExtensionsTest.cs =================================================================== diff -u -rba3865a26a9d4893855dd528ea1ad804d1cdae61 -rde1aa96304b19f865ef456a1ab901a681994c361 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionOutwards/GrassCoverErosionOutwardsFailureMechanismSectionResultCreateExtensionsTest.cs (.../GrassCoverErosionOutwardsFailureMechanismSectionResultCreateExtensionsTest.cs) (revision ba3865a26a9d4893855dd528ea1ad804d1cdae61) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverErosionOutwards/GrassCoverErosionOutwardsFailureMechanismSectionResultCreateExtensionsTest.cs (.../GrassCoverErosionOutwardsFailureMechanismSectionResultCreateExtensionsTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -39,7 +39,7 @@ [Values(AssessmentLayerTwoAResult.NotCalculated, AssessmentLayerTwoAResult.Failed, AssessmentLayerTwoAResult.Successful)] AssessmentLayerTwoAResult assessmentLayerTwoAResult, [Values(3.2, 4.5)] double assessmentLayerThreeResult - ) + ) { // Setup var sectionResult = new GrassCoverErosionOutwardsFailureMechanismSectionResult(new TestFailureMechanismSection()) Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverSlipOffOutwards/GrassCoverSlipOffOutwardsFailureMechanismSectionResultCreateExtensionsTest.cs =================================================================== diff -u -rba3865a26a9d4893855dd528ea1ad804d1cdae61 -rde1aa96304b19f865ef456a1ab901a681994c361 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverSlipOffOutwards/GrassCoverSlipOffOutwardsFailureMechanismSectionResultCreateExtensionsTest.cs (.../GrassCoverSlipOffOutwardsFailureMechanismSectionResultCreateExtensionsTest.cs) (revision ba3865a26a9d4893855dd528ea1ad804d1cdae61) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Create/GrassCoverSlipOffOutwards/GrassCoverSlipOffOutwardsFailureMechanismSectionResultCreateExtensionsTest.cs (.../GrassCoverSlipOffOutwardsFailureMechanismSectionResultCreateExtensionsTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -39,7 +39,7 @@ [Values(AssessmentLayerTwoAResult.NotCalculated, AssessmentLayerTwoAResult.Failed, AssessmentLayerTwoAResult.Successful)] AssessmentLayerTwoAResult assessmentLayerTwoAResult, [Values(3.2, 4.5)] double assessmentLayerThreeResult - ) + ) { // Setup var sectionResult = new GrassCoverSlipOffOutwardsFailureMechanismSectionResult(new TestFailureMechanismSection()) Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/IntegrationTests/StorageSqLiteIntegrationTest.cs =================================================================== diff -u -ra66bb42a5a04f43996835e328f0b9311d8394b29 -rde1aa96304b19f865ef456a1ab901a681994c361 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/IntegrationTests/StorageSqLiteIntegrationTest.cs (.../StorageSqLiteIntegrationTest.cs) (revision a66bb42a5a04f43996835e328f0b9311d8394b29) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/IntegrationTests/StorageSqLiteIntegrationTest.cs (.../StorageSqLiteIntegrationTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -450,8 +450,8 @@ } private static void AssertFailureMechanismSectionResults - (IEnumerable expectedSectionResults, - IEnumerable actualSectionResults) + (IEnumerable expectedSectionResults, + IEnumerable actualSectionResults) { var expectedSectionResultsArray = expectedSectionResults.ToArray(); var actualSectionResultsArray = actualSectionResults.ToArray(); Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/AssessmentSectionEntityReadExtensionsTest.cs =================================================================== diff -u -rd3c511b25782c606f9c71158ba5cf5cf5315d6ea -rde1aa96304b19f865ef456a1ab901a681994c361 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/AssessmentSectionEntityReadExtensionsTest.cs (.../AssessmentSectionEntityReadExtensionsTest.cs) (revision d3c511b25782c606f9c71158ba5cf5cf5315d6ea) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/AssessmentSectionEntityReadExtensionsTest.cs (.../AssessmentSectionEntityReadExtensionsTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -161,7 +161,7 @@ // Setup var entity = CreateAssessmentSectionEntity(); var random = new Random(21); - var parameterA = random.NextDouble()/10; + var parameterA = random.NextDouble() / 10; const string inputComments = "Some input text"; const string outputComments = "Some output text"; const string notRelevantComments = "Really not relevant"; @@ -1016,7 +1016,7 @@ { return new AssessmentSectionEntity { - Norm = 1.0/30000, + Norm = 1.0 / 30000, Composition = Convert.ToByte(AssessmentSectionComposition.Dike) }; } Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/IHydraulicLocationOutputEntityReadExtensionsTest.cs =================================================================== diff -u -rd0996c2eb38e607698ffe7f57e6e1847f8550a8f -rde1aa96304b19f865ef456a1ab901a681994c361 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/IHydraulicLocationOutputEntityReadExtensionsTest.cs (.../IHydraulicLocationOutputEntityReadExtensionsTest.cs) (revision d0996c2eb38e607698ffe7f57e6e1847f8550a8f) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/IHydraulicLocationOutputEntityReadExtensionsTest.cs (.../IHydraulicLocationOutputEntityReadExtensionsTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -70,8 +70,8 @@ [Test] public void Read_NaNParameters_ReturnsHydraulicBoundaryLocationOutputWithNaN( - [Values(CalculationConvergence.CalculatedNotConverged, CalculationConvergence.CalculatedConverged, - CalculationConvergence.NotCalculated)] CalculationConvergence convergence) + [Values(CalculationConvergence.CalculatedNotConverged, CalculationConvergence.CalculatedConverged, + CalculationConvergence.NotCalculated)] CalculationConvergence convergence) { // Setup var entity = new TestHydraulicLocationOutputEntity Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/PipingCalculationEntityReadExtensionsTest.cs =================================================================== diff -u -ra50f8fe4c13956d52e563e1f9e154f1bd186edad -rde1aa96304b19f865ef456a1ab901a681994c361 --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/PipingCalculationEntityReadExtensionsTest.cs (.../PipingCalculationEntityReadExtensionsTest.cs) (revision a50f8fe4c13956d52e563e1f9e154f1bd186edad) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/Piping/PipingCalculationEntityReadExtensionsTest.cs (.../PipingCalculationEntityReadExtensionsTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -382,7 +382,7 @@ private static double? GetRandomNullableDoubleInRange(Random random, double lowerLimit, double upperLimit) { var difference = upperLimit - lowerLimit; - return lowerLimit + random.NextDouble()*difference; + return lowerLimit + random.NextDouble() * difference; } } } \ No newline at end of file Index: Core/Common/src/Core.Common.Base/Data/RoundedDouble.cs =================================================================== diff -u -r4cb56b1d97a0dd45602a673cbc1a2a7356feae01 -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/src/Core.Common.Base/Data/RoundedDouble.cs (.../RoundedDouble.cs) (revision 4cb56b1d97a0dd45602a673cbc1a2a7356feae01) +++ Core/Common/src/Core.Common.Base/Data/RoundedDouble.cs (.../RoundedDouble.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -114,18 +114,18 @@ public static RoundedDouble operator *(RoundedDouble left, double right) { - return new RoundedDouble(left.numberOfDecimalPlaces, left.value*right); + return new RoundedDouble(left.numberOfDecimalPlaces, left.value * right); } public static RoundedDouble operator *(double left, RoundedDouble right) { - return new RoundedDouble(right.numberOfDecimalPlaces, left*right.value); + return new RoundedDouble(right.numberOfDecimalPlaces, left * right.value); } public static RoundedDouble operator *(RoundedDouble left, RoundedDouble right) { int smallestNumberOfDecimalPlaces = Math.Min(left.numberOfDecimalPlaces, right.numberOfDecimalPlaces); - return new RoundedDouble(smallestNumberOfDecimalPlaces, left.value*right.value); + return new RoundedDouble(smallestNumberOfDecimalPlaces, left.value * right.value); } public static implicit operator double(RoundedDouble d) Index: Core/Common/src/Core.Common.Base/Data/RoundedPoint2DCollection.cs =================================================================== diff -u -re60dbf2fd41434270cad4efba20446e19ede0d2e -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/src/Core.Common.Base/Data/RoundedPoint2DCollection.cs (.../RoundedPoint2DCollection.cs) (revision e60dbf2fd41434270cad4efba20446e19ede0d2e) +++ Core/Common/src/Core.Common.Base/Data/RoundedPoint2DCollection.cs (.../RoundedPoint2DCollection.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -57,9 +57,9 @@ } points = originalPoints.Select(p => - new Point2D( - new RoundedDouble(numberOfDecimalPlaces, p.X), - new RoundedDouble(numberOfDecimalPlaces, p.Y))); + new Point2D( + new RoundedDouble(numberOfDecimalPlaces, p.X), + new RoundedDouble(numberOfDecimalPlaces, p.Y))); this.numberOfDecimalPlaces = numberOfDecimalPlaces; } Index: Core/Common/src/Core.Common.Base/Geometry/Math2D.cs =================================================================== diff -u -re60dbf2fd41434270cad4efba20446e19ede0d2e -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/src/Core.Common.Base/Geometry/Math2D.cs (.../Math2D.cs) (revision e60dbf2fd41434270cad4efba20446e19ede0d2e) +++ Core/Common/src/Core.Common.Base/Geometry/Math2D.cs (.../Math2D.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -136,20 +136,20 @@ var aLine = line1Point2.Y - line1Point1.Y; var bLine = line1Point1.X - line1Point2.X; - var cLine = aLine*line1Point1.X + bLine*line1Point1.Y; + var cLine = aLine * line1Point1.X + bLine * line1Point1.Y; var aOtherLine = line2Point2.Y - line2Point1.Y; var bOtherLine = line2Point1.X - line2Point2.X; - var cOtherLine = aOtherLine*line2Point1.X + bOtherLine*line2Point1.Y; + var cOtherLine = aOtherLine * line2Point1.X + bOtherLine * line2Point1.Y; - var determinant = aLine*bOtherLine - aOtherLine*bLine; + var determinant = aLine * bOtherLine - aOtherLine * bLine; if (Math.Abs(determinant) < epsilonForComparisons) { return null; } - var x = (bOtherLine*cLine - bLine*cOtherLine)/determinant; - var y = (aLine*cOtherLine - aOtherLine*cLine)/determinant; + var x = (bOtherLine * cLine - bLine * cOtherLine) / determinant; + var y = (aLine * cOtherLine - aOtherLine * cLine) / determinant; return new Point2D(x, y); } @@ -283,13 +283,13 @@ else { // Segments are at an angle and may intersect: - double sI = PerpDotProduct(v, w)/d; + double sI = PerpDotProduct(v, w) / d; if (sI < 0.0 || sI > 1.0) { return Segment2DIntersectSegment2DResult.CreateNoIntersectResult(); } - double tI = PerpDotProduct(u, w)/d; + double tI = PerpDotProduct(u, w) / d; if (tI < 0.0 || tI > 1.0) { return Segment2DIntersectSegment2DResult.CreateNoIntersectResult(); @@ -343,13 +343,13 @@ Vector w2 = segment1.SecondPoint - segment2.FirstPoint; if (v[0] != 0.0) { - t0 = w[0]/v[0]; - t1 = w2[0]/v[0]; + t0 = w[0] / v[0]; + t1 = w2[0] / v[0]; } else { - t0 = w[1]/v[1]; - t1 = w2[1]/v[1]; + t0 = w[1] / v[1]; + t1 = w2[1] / v[1]; } // Require t0 to be smaller than t1, swapping if needed: if (t0 > t1) @@ -517,7 +517,7 @@ private static Point2D GetInterpolatedPoint(Segment2D lineSegment, double splitDistance) { - var interpolationFactor = splitDistance/lineSegment.Length; + var interpolationFactor = splitDistance / lineSegment.Length; return GetInterpolatedPointAtFraction(lineSegment, interpolationFactor); } Index: Core/Common/src/Core.Common.Base/Geometry/Point2D.cs =================================================================== diff -u -ra4da6760f40992a5db81766eb5c31e8586bad5ae -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/src/Core.Common.Base/Geometry/Point2D.cs (.../Point2D.cs) (revision a4da6760f40992a5db81766eb5c31e8586bad5ae) +++ Core/Common/src/Core.Common.Base/Geometry/Point2D.cs (.../Point2D.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -154,7 +154,7 @@ unchecked { var hashCode = X.GetHashCode(); - hashCode = (hashCode*397) ^ Y.GetHashCode(); + hashCode = (hashCode * 397) ^ Y.GetHashCode(); return hashCode; } } Index: Core/Common/src/Core.Common.Base/Geometry/Point3D.cs =================================================================== diff -u -r49c5da81f49a23dd6e66526d264a08bf510e6963 -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/src/Core.Common.Base/Geometry/Point3D.cs (.../Point3D.cs) (revision 49c5da81f49a23dd6e66526d264a08bf510e6963) +++ Core/Common/src/Core.Common.Base/Geometry/Point3D.cs (.../Point3D.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -78,8 +78,8 @@ unchecked { var hashCode = X.GetHashCode(); - hashCode = (hashCode*397) ^ Y.GetHashCode(); - hashCode = (hashCode*397) ^ Z.GetHashCode(); + hashCode = (hashCode * 397) ^ Y.GetHashCode(); + hashCode = (hashCode * 397) ^ Z.GetHashCode(); return hashCode; } } Index: Core/Common/src/Core.Common.Base/Geometry/Point3DExtensions.cs =================================================================== diff -u -r24da3aa72ccc0776599628c9f971081694048d9a -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/src/Core.Common.Base/Geometry/Point3DExtensions.cs (.../Point3DExtensions.cs) (revision 24da3aa72ccc0776599628c9f971081694048d9a) +++ Core/Common/src/Core.Common.Base/Geometry/Point3DExtensions.cs (.../Point3DExtensions.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -73,8 +73,8 @@ } // Project vector onto the 'spanning vector' to determine its X-coordinate in local coordinates: - double projectOnSpanningVectorFactor = vectorToPoint.DotProduct(spanningVector)/spanningVectorDotProduct; - double localCoordinateX = projectOnSpanningVectorFactor*length; + double projectOnSpanningVectorFactor = vectorToPoint.DotProduct(spanningVector) / spanningVectorDotProduct; + double localCoordinateX = projectOnSpanningVectorFactor * length; return new Point2D(localCoordinateX, worldCoordinate.Z); } Index: Core/Common/src/Core.Common.Base/Geometry/Segment2D.cs =================================================================== diff -u -rf08fd5cc1482a6c706bdb04d46b6482d489b7c5b -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/src/Core.Common.Base/Geometry/Segment2D.cs (.../Segment2D.cs) (revision f08fd5cc1482a6c706bdb04d46b6482d489b7c5b) +++ Core/Common/src/Core.Common.Base/Geometry/Segment2D.cs (.../Segment2D.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -134,9 +134,9 @@ // 'point' falls within the perpendicular area defined by the segment (zone B). // 3. Use remainder of vector projection to determine point on segment for perpendicular line: - double projectionFactor = dotProductOrientationVector/dotProductSegmentVector; - double perpendicularOnSegmentX = FirstPoint.X + projectionFactor*segmentVector[0]; - double perpendicularOnSegmentY = FirstPoint.Y + projectionFactor*segmentVector[1]; + double projectionFactor = dotProductOrientationVector / dotProductSegmentVector; + double perpendicularOnSegmentX = FirstPoint.X + projectionFactor * segmentVector[0]; + double perpendicularOnSegmentY = FirstPoint.Y + projectionFactor * segmentVector[1]; var perpendicularLineIntersectionPoint = new Point2D(perpendicularOnSegmentX, perpendicularOnSegmentY); return point.GetEuclideanDistanceTo(perpendicularLineIntersectionPoint); @@ -184,7 +184,7 @@ { unchecked { - return ((FirstPoint.X + SecondPoint.X).GetHashCode()*397) ^ (FirstPoint.Y + SecondPoint.Y).GetHashCode(); + return ((FirstPoint.X + SecondPoint.X).GetHashCode() * 397) ^ (FirstPoint.Y + SecondPoint.Y).GetHashCode(); } } Index: Core/Common/src/Core.Common.Controls.TreeView/DragDropHandler.cs =================================================================== diff -u -r9fb229f4fc4fe2c11e79e344c76ceb220f2dc96a -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/src/Core.Common.Controls.TreeView/DragDropHandler.cs (.../DragDropHandler.cs) (revision 9fb229f4fc4fe2c11e79e344c76ceb220f2dc96a) +++ Core/Common/src/Core.Common.Controls.TreeView/DragDropHandler.cs (.../DragDropHandler.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -259,7 +259,7 @@ private static void ScrollIntoView(Point point, TreeNode nodeOver, FormsTreeView treeView) { int delta = treeView.Height - point.Y; - double halfTreeViewHeight = treeView.Height/2.0; + double halfTreeViewHeight = treeView.Height / 2.0; if (delta < halfTreeViewHeight && delta > 0) { @@ -285,7 +285,7 @@ var placeholderLocation = PlaceholderLocation.None; int offsetY = treeView.PointToClient(Cursor.Position).Y - nodeOver.Bounds.Top; - if (offsetY < nodeOver.Bounds.Height/3 && nodeDragging.NextNode != nodeOver) + if (offsetY < nodeOver.Bounds.Height / 3 && nodeDragging.NextNode != nodeOver) { if (nodeOver.Parent != null) { @@ -311,7 +311,7 @@ } } else if (nodeOver.Parent != null && - offsetY > nodeOver.Bounds.Height - nodeOver.Bounds.Height/3 && + offsetY > nodeOver.Bounds.Height - nodeOver.Bounds.Height / 3 && nodeDragging.PrevNode != nodeOver) { TreeNodeInfo treeNodeInfo = getTreeNodeInfoForData(nodeOver.Parent.Tag); @@ -331,8 +331,8 @@ } } else if (nodeDragging != nodeOver && - offsetY < nodeOver.Bounds.Height - nodeOver.Bounds.Height/4 && - offsetY > nodeOver.Bounds.Height/4) + offsetY < nodeOver.Bounds.Height - nodeOver.Bounds.Height / 4 && + offsetY > nodeOver.Bounds.Height / 4) { nodeDropTarget = nodeOver; dropAtLocation = 0; @@ -392,7 +392,7 @@ yPos = bounds.Bottom; break; case PlaceholderLocation.Middle: - yPos = bounds.Top + bounds.Height/2; + yPos = bounds.Top + bounds.Height / 2; break; default: throw new InvalidEnumArgumentException("location", @@ -416,15 +416,15 @@ return new[] { new Point(bounds.Left, bounds.Top), - new Point(bounds.Right, bounds.Top + bounds.Height/2), + new Point(bounds.Right, bounds.Top + bounds.Height / 2), new Point(bounds.Left, bounds.Top + bounds.Height), new Point(bounds.Left, bounds.Top) }; case AnchorStyles.Right: return new[] { new Point(bounds.Right, bounds.Top), - new Point(bounds.Left, bounds.Top + bounds.Height/2), + new Point(bounds.Left, bounds.Top + bounds.Height / 2), new Point(bounds.Right, bounds.Top + bounds.Height), new Point(bounds.Right, bounds.Top) }; Index: Core/Common/src/Core.Common.Controls.TreeView/TreeViewControl.cs =================================================================== diff -u -r9fb229f4fc4fe2c11e79e344c76ceb220f2dc96a -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/src/Core.Common.Controls.TreeView/TreeViewControl.cs (.../TreeViewControl.cs) (revision 9fb229f4fc4fe2c11e79e344c76ceb220f2dc96a) +++ Core/Common/src/Core.Common.Controls.TreeView/TreeViewControl.cs (.../TreeViewControl.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -681,7 +681,7 @@ { Size glyphSize = CheckBoxRenderer.GetGlyphSize(g, state); - CheckBoxRenderer.DrawCheckBox(g, new Point((result.Width - glyphSize.Width)/2, (result.Height - glyphSize.Height)/2), state); + CheckBoxRenderer.DrawCheckBox(g, new Point((result.Width - glyphSize.Width) / 2, (result.Height - glyphSize.Height) / 2), state); } return result; Index: Core/Common/src/Core.Common.Gui/Forms/ProgressDialog/ActivityProgressDialog.cs =================================================================== diff -u -r8905298103eb01ce13dd5c1a2f267f879d4fda3e -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/src/Core.Common.Gui/Forms/ProgressDialog/ActivityProgressDialog.cs (.../ActivityProgressDialog.cs) (revision 8905298103eb01ce13dd5c1a2f267f879d4fda3e) +++ Core/Common/src/Core.Common.Gui/Forms/ProgressDialog/ActivityProgressDialog.cs (.../ActivityProgressDialog.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -118,7 +118,7 @@ progressReporter.ReportProgress(() => { // Update the progress bar - progressBar.Value = (int) Math.Round(100.0/activityCount*stepNumberForProgressNotification); + progressBar.Value = (int) Math.Round(100.0 / activityCount * stepNumberForProgressNotification); }); } }, cancellationToken); Index: Core/Common/test/Core.Common.Base.Test/Data/RoundedDoubleTest.cs =================================================================== diff -u -r0bf4bcd4f68d262ee5d66920d06aea97f54b5a1b -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/test/Core.Common.Base.Test/Data/RoundedDoubleTest.cs (.../RoundedDoubleTest.cs) (revision 0bf4bcd4f68d262ee5d66920d06aea97f54b5a1b) +++ Core/Common/test/Core.Common.Base.Test/Data/RoundedDoubleTest.cs (.../RoundedDoubleTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -714,8 +714,8 @@ double doubleValue = 5.67891234; // Call - RoundedDouble result1 = roundedDouble*doubleValue; - RoundedDouble result2 = doubleValue*roundedDouble; + RoundedDouble result1 = roundedDouble * doubleValue; + RoundedDouble result2 = doubleValue * roundedDouble; // Assert Assert.AreEqual(roundedDouble.NumberOfDecimalPlaces, result1.NumberOfDecimalPlaces); @@ -733,7 +733,7 @@ var roundedDouble2 = new RoundedDouble(5, -3.45678); // Call - RoundedDouble result = roundedDouble1*roundedDouble2; + RoundedDouble result = roundedDouble1 * roundedDouble2; // Assert Assert.AreEqual(2, result.NumberOfDecimalPlaces); @@ -748,7 +748,7 @@ var roundedDouble2 = new RoundedDouble(3, -9.123); // Call - RoundedDouble result = roundedDouble1*roundedDouble2; + RoundedDouble result = roundedDouble1 * roundedDouble2; // Assert Assert.AreEqual(3, result.NumberOfDecimalPlaces); @@ -763,8 +763,8 @@ var roundedDouble2 = new RoundedDouble(2, 2.22); // Call - RoundedDouble result1 = roundedDouble1*roundedDouble2; - RoundedDouble result2 = roundedDouble2*roundedDouble1; + RoundedDouble result1 = roundedDouble1 * roundedDouble2; + RoundedDouble result2 = roundedDouble2 * roundedDouble1; // Assert Assert.AreEqual(result1.NumberOfDecimalPlaces, result2.NumberOfDecimalPlaces); @@ -833,7 +833,7 @@ // Assert Assert.AreEqual(expectedRoundedDoubleIndex, roundedDoubleResult); - Assert.AreEqual(-1*expectedRoundedDoubleIndex, doubleResult); + Assert.AreEqual(-1 * expectedRoundedDoubleIndex, doubleResult); } [Test] @@ -862,7 +862,7 @@ // Assert Assert.AreEqual(expectedRoundedDoubleIndex, roundedDouble1Result); - Assert.AreEqual(-1*expectedRoundedDoubleIndex, roundedDouble2Result); + Assert.AreEqual(-1 * expectedRoundedDoubleIndex, roundedDouble2Result); } [Test] Index: Core/Common/test/Core.Common.Base.Test/Geometry/Math2DTest.cs =================================================================== diff -u -r9063c3c60f936760953c52185b72f0cb2dce9bf8 -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/test/Core.Common.Base.Test/Geometry/Math2DTest.cs (.../Math2DTest.cs) (revision 9063c3c60f936760953c52185b72f0cb2dce9bf8) +++ Core/Common/test/Core.Common.Base.Test/Geometry/Math2DTest.cs (.../Math2DTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -120,7 +120,7 @@ var result = Math2D.LineIntersectionWithLine(new Point2D(start, y1), new Point2D(start + 1, y2), new Point2D(start + 0.5, 0), new Point2D(start + 0.5, 1)); // Assert - Assert.AreEqual((y1 + y2)/2, result.Y, 1e-6); + Assert.AreEqual((y1 + y2) / 2, result.Y, 1e-6); } [Test] @@ -490,7 +490,7 @@ double dx) { // Setup - Func getY = x => 1.1*x + 2.2; + Func getY = x => 1.1 * x + 2.2; const double x1 = 1.1; const double x2 = 3.3; var segment1 = new Segment2D(new Point2D(x1, getY(x1)), new Point2D(x2, getY(x2))); @@ -590,9 +590,9 @@ // Assert Assert.AreEqual(Intersection2DType.Intersects, result.IntersectionType); CollectionAssert.AreEqual(new[] - { - segmentCommonPoint - }, result.IntersectionPoints, + { + segmentCommonPoint + }, result.IntersectionPoints, new Point2DComparerWithTolerance(1e-6)); } @@ -605,7 +605,7 @@ int configurationNumber) { // Setup - Func getY = x => 3.3*x + 4.4; + Func getY = x => 3.3 * x + 4.4; const double x1 = 5.5; const double x2 = 6.6; @@ -791,7 +791,7 @@ public void GetIntersectionBetweenSegments_CollinearSegmentsWithFullOverlap_ReturnOverlap() { // Setup - Func getY = x => -12.34*x + 45.67; + Func getY = x => -12.34 * x + 45.67; const double x1 = 1.1; const double x2 = 2.2; const double x3 = -3.3; @@ -885,7 +885,7 @@ bool firstSegmentIsPointDegenerate) { // Setup - Func getY = x => 1.2*x + 3.4; + Func getY = x => 1.2 * x + 3.4; const double x1 = 1.1; const double x2 = 5.5; @@ -959,7 +959,7 @@ bool firstSegmentIsPointDegenerate) { // Setup - Func getY = x => -5.6*x + 7.8; + Func getY = x => -5.6 * x + 7.8; const double x1 = 1.1; const double x2 = 5.5; @@ -1146,7 +1146,7 @@ Point2D result = Math2D.GetInterpolatedPointAtFraction(segment, fraction); // Assert - Assert.AreEqual(new Point2D(2.8, (5.02 - 2.2)*fraction), result); + Assert.AreEqual(new Point2D(2.8, (5.02 - 2.2) * fraction), result); } [Test] @@ -1215,7 +1215,7 @@ private static double[] GetLengthsBasedOnRelative(double[] relativeLengths, IEnumerable lineGeometryPoints) { var lineLength = Math2D.ConvertLinePointsToLineSegments(lineGeometryPoints).Sum(s => s.Length); - return relativeLengths.Select(l => lineLength*l).ToArray(); + return relativeLengths.Select(l => lineLength * l).ToArray(); } #region testcases Index: Core/Common/test/Core.Common.Base.Test/Geometry/Point2DTest.cs =================================================================== diff -u -r8905298103eb01ce13dd5c1a2f267f879d4fda3e -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/test/Core.Common.Base.Test/Geometry/Point2DTest.cs (.../Point2DTest.cs) (revision 8905298103eb01ce13dd5c1a2f267f879d4fda3e) +++ Core/Common/test/Core.Common.Base.Test/Geometry/Point2DTest.cs (.../Point2DTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -163,7 +163,10 @@ Point2D second = new Point2D(0, 0); // Call - TestDelegate call = () => { Vector result = first - second; }; + TestDelegate call = () => + { + Vector result = first - second; + }; // Assert string paramName = Assert.Throws(call).ParamName; @@ -178,7 +181,10 @@ Point2D second = null; // Call - TestDelegate call = () => { Vector result = first - second; }; + TestDelegate call = () => + { + Vector result = first - second; + }; // Assert string paramName = Assert.Throws(call).ParamName; @@ -209,7 +215,10 @@ Vector vector = new DenseVector(2); // Call - TestDelegate call = () => { Point2D result = point + vector; }; + TestDelegate call = () => + { + Point2D result = point + vector; + }; // Assert string paramName = Assert.Throws(call).ParamName; @@ -224,7 +233,10 @@ Vector vector = null; // Call - TestDelegate call = () => { Point2D result = point + vector; }; + TestDelegate call = () => + { + Point2D result = point + vector; + }; // Assert string paramName = Assert.Throws(call).ParamName; @@ -295,7 +307,10 @@ }); // Call - TestDelegate call = () => { Point2D result = originalPoint + vector3D; }; + TestDelegate call = () => + { + Point2D result = originalPoint + vector3D; + }; // Assert const string expectedMessage = "Vector moet 2 dimensies hebben, maar heeft er 3."; Index: Core/Common/test/Core.Common.Base.Test/Geometry/Point3DExtensionsTest.cs =================================================================== diff -u -r24da3aa72ccc0776599628c9f971081694048d9a -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/test/Core.Common.Base.Test/Geometry/Point3DExtensionsTest.cs (.../Point3DExtensionsTest.cs) (revision 24da3aa72ccc0776599628c9f971081694048d9a) +++ Core/Common/test/Core.Common.Base.Test/Geometry/Point3DExtensionsTest.cs (.../Point3DExtensionsTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -131,9 +131,9 @@ Point2D convertedPoint = pointToConvert.ProjectIntoLocalCoordinates(startPoint, endPoint); // Assert - var length = Math.Sqrt(2*2 + 3*3); - const double pointToConvertCoordinateFactor = (2.0*1.0 + 3.0*2.0)/(2.0*2.0 + 3.0*3.0); - double expectedX = pointToConvertCoordinateFactor*length; + var length = Math.Sqrt(2 * 2 + 3 * 3); + const double pointToConvertCoordinateFactor = (2.0 * 1.0 + 3.0 * 2.0) / (2.0 * 2.0 + 3.0 * 3.0); + double expectedX = pointToConvertCoordinateFactor * length; Assert.AreEqual(new Point2D(expectedX, pointToConvert.Z), convertedPoint); } Index: Core/Common/test/Core.Common.Base.Test/Geometry/Point3DTest.cs =================================================================== diff -u -r24da3aa72ccc0776599628c9f971081694048d9a -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/test/Core.Common.Base.Test/Geometry/Point3DTest.cs (.../Point3DTest.cs) (revision 24da3aa72ccc0776599628c9f971081694048d9a) +++ Core/Common/test/Core.Common.Base.Test/Geometry/Point3DTest.cs (.../Point3DTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -118,7 +118,7 @@ x + deltaX, y + deltaY, z + deltaZ - ); + ); // Call var result = point.Equals(otherPoint); Index: Core/Common/test/Core.Common.Controls.Test/DataGrid/DataGridViewControlTest.cs =================================================================== diff -u -re60dbf2fd41434270cad4efba20446e19ede0d2e -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/test/Core.Common.Controls.Test/DataGrid/DataGridViewControlTest.cs (.../DataGridViewControlTest.cs) (revision e60dbf2fd41434270cad4efba20446e19ede0d2e) +++ Core/Common/test/Core.Common.Controls.Test/DataGrid/DataGridViewControlTest.cs (.../DataGridViewControlTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -471,7 +471,7 @@ dataSource, TypeUtils.GetMemberName>(ds => ds.Value), TypeUtils.GetMemberName>(ds => ds.DisplayName) - ); + ); // Assert Assert.AreEqual(1, dataGridView.ColumnCount); Index: Core/Common/test/Core.Common.Gui.Test/Forms/ViewHost/AvalonDockViewHostTest.cs =================================================================== diff -u -rcf9cd9f3225c44880a5e966117e0f2c09fc2d4b0 -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/test/Core.Common.Gui.Test/Forms/ViewHost/AvalonDockViewHostTest.cs (.../AvalonDockViewHostTest.cs) (revision cf9cd9f3225c44880a5e966117e0f2c09fc2d4b0) +++ Core/Common/test/Core.Common.Gui.Test/Forms/ViewHost/AvalonDockViewHostTest.cs (.../AvalonDockViewHostTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -149,6 +149,11 @@ }, firedEvents); } + private class TestView : UserControl, IView + { + public object Data { get; set; } + } + #region Document views [Test] @@ -973,10 +978,5 @@ } #endregion - - private class TestView : UserControl, IView - { - public object Data { get; set; } - } } } \ No newline at end of file Index: Core/Common/test/Core.Common.Gui.Test/Plugin/PropertyInfoExtensionsTest.cs =================================================================== diff -u -rc18f1b5eca111867195ebedf813fae22a12ce793 -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/test/Core.Common.Gui.Test/Plugin/PropertyInfoExtensionsTest.cs (.../PropertyInfoExtensionsTest.cs) (revision c18f1b5eca111867195ebedf813fae22a12ce793) +++ Core/Common/test/Core.Common.Gui.Test/Plugin/PropertyInfoExtensionsTest.cs (.../PropertyInfoExtensionsTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -87,10 +87,7 @@ PropertyInfo propertyInfo = new PropertyInfo { GetObjectPropertiesData = i => alternativeIntegerValue, - AfterCreate = (intProperties, data) => - { - Assert.AreEqual(alternativeIntegerValue, intProperties.Data); - } + AfterCreate = (intProperties, data) => { Assert.AreEqual(alternativeIntegerValue, intProperties.Data); } }; const int integerValue = 22; Index: Core/Common/test/Core.Common.Gui.TestUtil/PluginTestHelper.cs =================================================================== diff -u -r2973c5f790a5131e427bd5f73e2a620044199639 -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/test/Core.Common.Gui.TestUtil/PluginTestHelper.cs (.../PluginTestHelper.cs) (revision 2973c5f790a5131e427bd5f73e2a620044199639) +++ Core/Common/test/Core.Common.Gui.TestUtil/PluginTestHelper.cs (.../PluginTestHelper.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -48,8 +48,8 @@ Assert.NotNull(propertyInfos); var propertyInfo = propertyInfos.FirstOrDefault( tni => - tni.DataType == dataObjectType && - tni.PropertyObjectType == propertyObjectType); + tni.DataType == dataObjectType && + tni.PropertyObjectType == propertyObjectType); Assert.NotNull(propertyInfo); return propertyInfo; } Index: Core/Common/test/Core.Common.TestUtil/RandomExtensions.cs =================================================================== diff -u -r3e43a4363fdbbeef529387ca3c86802094532813 -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/test/Core.Common.TestUtil/RandomExtensions.cs (.../RandomExtensions.cs) (revision 3e43a4363fdbbeef529387ca3c86802094532813) +++ Core/Common/test/Core.Common.TestUtil/RandomExtensions.cs (.../RandomExtensions.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -51,7 +51,7 @@ } double difference = upperLimit - lowerLimit; - double randomValue = lowerLimit + random.NextDouble()*difference; + double randomValue = lowerLimit + random.NextDouble() * difference; if (double.IsInfinity(randomValue) || double.IsNaN(randomValue)) { string message = string.Format("Creating a new random value with lower limit {0} " + Index: Core/Common/test/Core.Common.TestUtil/TestHelper.cs =================================================================== diff -u -r065af7e201b59ec19a17c42e9d772f5e86b31338 -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/test/Core.Common.TestUtil/TestHelper.cs (.../TestHelper.cs) (revision 065af7e201b59ec19a17c42e9d772f5e86b31338) +++ Core/Common/test/Core.Common.TestUtil/TestHelper.cs (.../TestHelper.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -312,10 +312,10 @@ var userMessage = string.IsNullOrEmpty(message) ? "" : message + ". "; if (!rank.Equals(1.0f)) { - Assert.IsTrue(rank*actualMillisecond < maxMilliseconds, userMessage + "Maximum of {0} milliseconds exceeded. Actual was {1}, machine performance weighted actual was {2}", - maxMilliseconds, actualMillisecond, actualMillisecond*rank); + Assert.IsTrue(rank * actualMillisecond < maxMilliseconds, userMessage + "Maximum of {0} milliseconds exceeded. Actual was {1}, machine performance weighted actual was {2}", + maxMilliseconds, actualMillisecond, actualMillisecond * rank); Console.WriteLine(userMessage + string.Format("Test took {1} milliseconds (machine performance weighted {2}). Maximum was {0}", - maxMilliseconds, actualMillisecond, actualMillisecond*rank)); + maxMilliseconds, actualMillisecond, actualMillisecond * rank)); } else { @@ -411,7 +411,7 @@ var bitmap = new Bitmap(image).Clone(new Rectangle(0, 0, image.Size.Width, image.Size.Height), PixelFormat.Format32bppArgb); var index = 0; - var imageColors = new Color[image.Size.Width*image.Size.Height]; + var imageColors = new Color[image.Size.Width * image.Size.Height]; for (int i = 0; i < bitmap.Height; i++) { for (int j = 0; j < bitmap.Width; j++) Index: Core/Common/test/Core.Common.Utils.Test/Reflection/TypeUtilsTest.cs =================================================================== diff -u -ra4da6760f40992a5db81766eb5c31e8586bad5ae -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Common/test/Core.Common.Utils.Test/Reflection/TypeUtilsTest.cs (.../TypeUtilsTest.cs) (revision a4da6760f40992a5db81766eb5c31e8586bad5ae) +++ Core/Common/test/Core.Common.Utils.Test/Reflection/TypeUtilsTest.cs (.../TypeUtilsTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -612,7 +612,7 @@ /// private int PrivateMethod(int i) { - return i*2; + return i * 2; } } Index: Core/Components/src/Core.Components.DotSpatial.Forms/MapControl.cs =================================================================== diff -u -r4dbfc20ef0200e34db43efeb8899d72e4046cc5b -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Components/src/Core.Components.DotSpatial.Forms/MapControl.cs (.../MapControl.cs) (revision 4dbfc20ef0200e34db43efeb8899d72e4046cc5b) +++ Core/Components/src/Core.Components.DotSpatial.Forms/MapControl.cs (.../MapControl.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -144,7 +144,7 @@ private static void AddPadding(Extent extent) { - var padding = Math.Min(extent.Height, extent.Width)*0.05; + var padding = Math.Min(extent.Height, extent.Width) * 0.05; if (Math.Max(extent.Height, extent.Width) + padding <= double.MaxValue) { extent.ExpandBy(padding); Index: Core/Components/test/Core.Components.DotSpatial.Forms.Test/MapControlTest.cs =================================================================== diff -u -r2cafb330e0b90d1103bc9329eafbcba24836787f -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Components/test/Core.Components.DotSpatial.Forms.Test/MapControlTest.cs (.../MapControlTest.cs) (revision 2cafb330e0b90d1103bc9329eafbcba24836787f) +++ Core/Components/test/Core.Components.DotSpatial.Forms.Test/MapControlTest.cs (.../MapControlTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -377,7 +377,7 @@ Extent expectedExtent = mapView.GetMaxExtent(); var smallest = expectedExtent.Height < expectedExtent.Width ? expectedExtent.Height : expectedExtent.Width; - expectedExtent.ExpandBy(smallest*padding); + expectedExtent.ExpandBy(smallest * padding); Assert.AreEqual(expectedExtent, mapView.ViewExtents); } } @@ -394,7 +394,7 @@ var expectedExtent = new Extent(0.0, 0.5, 1.6, 2.1); var smallest = expectedExtent.Height < expectedExtent.Width ? expectedExtent.Height : expectedExtent.Width; - expectedExtent.ExpandBy(smallest*padding); + expectedExtent.ExpandBy(smallest * padding); // Precondition Assert.AreEqual(3, mapView.Layers.Count, "Precondition failed: mapView.Layers != 3"); @@ -413,7 +413,7 @@ [TestCase(5.0, 5.0)] [TestCase(5.0, 1.0)] [TestCase(1.0, 5.0)] - [TestCase(double.MaxValue*0.96, double.MaxValue*0.96)] + [TestCase(double.MaxValue * 0.96, double.MaxValue * 0.96)] [TestCase(double.MaxValue, double.MaxValue)] public void ZoomToAllVisibleLayers_LayersOfVariousDimensions_ZoomToVisibleLayersExtent(double xMax, double yMax) { @@ -445,7 +445,7 @@ var expectedExtent = new Extent(0.0, 0.0, xMax, yMax); var smallest = expectedExtent.Height < expectedExtent.Width ? expectedExtent.Height : expectedExtent.Width; - expectedExtent.ExpandBy(smallest*padding); + expectedExtent.ExpandBy(smallest * padding); // Call map.ZoomToAllVisibleLayers(); Index: Core/Components/test/Core.Components.OxyPlot.Test/CustomSeries/MultipleAreaSeriesTest.cs =================================================================== diff -u -re42bdf3dd379c46bab9212eb7b30f4754c9bc91c -rde1aa96304b19f865ef456a1ab901a681994c361 --- Core/Components/test/Core.Components.OxyPlot.Test/CustomSeries/MultipleAreaSeriesTest.cs (.../MultipleAreaSeriesTest.cs) (revision e42bdf3dd379c46bab9212eb7b30f4754c9bc91c) +++ Core/Components/test/Core.Components.OxyPlot.Test/CustomSeries/MultipleAreaSeriesTest.cs (.../MultipleAreaSeriesTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -115,13 +115,13 @@ renderContext.Stub(rc => rc.SetClip(OxyRect.Create(0, 0, 0, 0))).Return(true); renderContext.Stub(rc => rc.ResetClip()); renderContext.Expect(rc => rc.DrawPolygon( - Arg.Matches(sp => sp.Length == pointCount), - Arg.Is.Equal(series.ActualFill), - Arg.Is.Equal(series.ActualColor), - Arg.Is.Equal(series.StrokeThickness), - Arg.Is.Anything, - Arg.Is.Anything, - Arg.Is.Anything)); + Arg.Matches(sp => sp.Length == pointCount), + Arg.Is.Equal(series.ActualFill), + Arg.Is.Equal(series.ActualColor), + Arg.Is.Equal(series.StrokeThickness), + Arg.Is.Anything, + Arg.Is.Anything, + Arg.Is.Anything)); mocks.ReplayAll(); var area = new DataPoint[pointCount]; @@ -156,13 +156,13 @@ renderContext.Stub(rc => rc.SetClip(OxyRect.Create(0, 0, 0, 0))).Return(true); renderContext.Stub(rc => rc.ResetClip()); renderContext.Expect(rc => rc.DrawPolygon( - Arg.Matches(sp => sp.Length > 0), - Arg.Is.Equal(series.ActualFill), - Arg.Is.Equal(series.ActualColor), - Arg.Is.Equal(series.StrokeThickness), - Arg.Is.Anything, - Arg.Is.Anything, - Arg.Is.Anything)).Repeat.Times(areaCount); + Arg.Matches(sp => sp.Length > 0), + Arg.Is.Equal(series.ActualFill), + Arg.Is.Equal(series.ActualColor), + Arg.Is.Equal(series.StrokeThickness), + Arg.Is.Anything, + Arg.Is.Anything, + Arg.Is.Anything)).Repeat.Times(areaCount); mocks.ReplayAll(); Index: Demo/Ringtoets/src/Demo.Ringtoets/Commands/AddNewDemoAssessmentSectionCommand.cs =================================================================== diff -u -rf7a0b62177d09fb02de673c29f7d153775c5608d -rde1aa96304b19f865ef456a1ab901a681994c361 --- Demo/Ringtoets/src/Demo.Ringtoets/Commands/AddNewDemoAssessmentSectionCommand.cs (.../AddNewDemoAssessmentSectionCommand.cs) (revision f7a0b62177d09fb02de673c29f7d153775c5608d) +++ Demo/Ringtoets/src/Demo.Ringtoets/Commands/AddNewDemoAssessmentSectionCommand.cs (.../AddNewDemoAssessmentSectionCommand.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -185,193 +185,193 @@ private static void SetGrassCoverErosionOutwardsHydraulicBoundaryLocationDesignWaterLevelOutputValues(GrassCoverErosionOutwardsFailureMechanism failureMechanism) { - double targetProbability = 1.0/200000; + double targetProbability = 1.0 / 200000; ObservableList locations = failureMechanism.HydraulicBoundaryLocations; locations.ElementAt(0).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 7.19, targetProbability, 4.79014, - 1.0/1196727, 4.78959, + 1.0 / 1196727, 4.78959, CalculationConvergence.CalculatedConverged); locations.ElementAt(1).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 7.19, targetProbability, 4.79014, - 1.0/1196727, 4.78959, + 1.0 / 1196727, 4.78959, CalculationConvergence.CalculatedConverged); locations.ElementAt(2).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 7.18, targetProbability, 4.79014, - 1.0/1196727, 4.78959, + 1.0 / 1196727, 4.78959, CalculationConvergence.CalculatedConverged); locations.ElementAt(3).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 7.18, targetProbability, 4.79014, - 1.0/1196787, 4.78960, + 1.0 / 1196787, 4.78960, CalculationConvergence.CalculatedConverged); locations.ElementAt(4).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 7.18, targetProbability, 4.79014, - 1.0/1196787, 4.78960, + 1.0 / 1196787, 4.78960, CalculationConvergence.CalculatedConverged); locations.ElementAt(5).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 7.39, targetProbability, 4.79014, - 1.0/1196489, 4.78955, + 1.0 / 1196489, 4.78955, CalculationConvergence.CalculatedConverged); locations.ElementAt(6).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 7.39, targetProbability, 4.79014, - 1.0/1196489, 4.78955, + 1.0 / 1196489, 4.78955, CalculationConvergence.CalculatedConverged); locations.ElementAt(7).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 7.39, targetProbability, 4.79014, - 1.0/1196489, 4.78955, + 1.0 / 1196489, 4.78955, CalculationConvergence.CalculatedConverged); locations.ElementAt(8).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 7.40, targetProbability, 4.79014, - 1.0/1196489, 4.78955, + 1.0 / 1196489, 4.78955, CalculationConvergence.CalculatedConverged); locations.ElementAt(9).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 7.40, targetProbability, 4.79014, - 1.0/1196429, 4.78954, + 1.0 / 1196429, 4.78954, CalculationConvergence.CalculatedConverged); locations.ElementAt(10).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 7.40, targetProbability, 4.79014, - 1.0/1196429, 4.78954, + 1.0 / 1196429, 4.78954, CalculationConvergence.CalculatedConverged); locations.ElementAt(11).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 7.40, targetProbability, 4.79014, - 1.0/1196429, 4.78954, + 1.0 / 1196429, 4.78954, CalculationConvergence.CalculatedConverged); locations.ElementAt(12).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 7.40, targetProbability, 4.79014, - 1.0/1196429, 4.78954, + 1.0 / 1196429, 4.78954, CalculationConvergence.CalculatedConverged); locations.ElementAt(13).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 7.41, targetProbability, 4.79014, - 1.0/1196429, 4.78954, + 1.0 / 1196429, 4.78954, CalculationConvergence.CalculatedConverged); locations.ElementAt(14).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 7.41, targetProbability, 4.79014, - 1.0/1196429, 4.78954, + 1.0 / 1196429, 4.78954, CalculationConvergence.CalculatedConverged); locations.ElementAt(15).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 6.91, targetProbability, 4.79014, - 1.0/1197264, 4.78968, + 1.0 / 1197264, 4.78968, CalculationConvergence.CalculatedConverged); locations.ElementAt(16).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 7.53, targetProbability, 4.79014, - 1.0/1195476, 4.78938, + 1.0 / 1195476, 4.78938, CalculationConvergence.CalculatedConverged); locations.ElementAt(17).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 7.80, targetProbability, 4.79014, - 1.0/1194761, 4.78926, + 1.0 / 1194761, 4.78926, CalculationConvergence.CalculatedConverged); } private static void SetGrassCoverErosionOutwardsHydraulicBoundaryLocationWaveHeightOutputValues(GrassCoverErosionOutwardsFailureMechanism failureMechanism) { - const double targetProbability = 1.0/200000; + const double targetProbability = 1.0 / 200000; ObservableList locations = failureMechanism.HydraulicBoundaryLocations; locations.ElementAt(0).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 4.99, targetProbability, 4.79014, - 1.0/1199892, 4.79012, + 1.0 / 1199892, 4.79012, CalculationConvergence.CalculatedConverged); locations.ElementAt(1).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 5.04, targetProbability, 4.79014, - 1.0/1199892, 4.79012, + 1.0 / 1199892, 4.79012, CalculationConvergence.CalculatedConverged); locations.ElementAt(2).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 4.87, targetProbability, 4.79014, - 1.0/1199892, 4.79012, + 1.0 / 1199892, 4.79012, CalculationConvergence.CalculatedConverged); locations.ElementAt(3).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 4.73, targetProbability, 4.79014, - 1.0/1199892, 4.79012, + 1.0 / 1199892, 4.79012, CalculationConvergence.CalculatedConverged); locations.ElementAt(4).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 4.59, targetProbability, 4.79014, - 1.0/1199833, 4.79011, + 1.0 / 1199833, 4.79011, CalculationConvergence.CalculatedConverged); locations.ElementAt(5).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 3.35, targetProbability, 4.79014, - 1.0/1197264, 4.78968, + 1.0 / 1197264, 4.78968, CalculationConvergence.CalculatedConverged); locations.ElementAt(6).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 3.83, targetProbability, 4.79014, - 1.0/1196906, 4.78962, + 1.0 / 1196906, 4.78962, CalculationConvergence.CalculatedConverged); locations.ElementAt(7).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 4.00, targetProbability, 4.79014, - 1.0/1197264, 4.78968, + 1.0 / 1197264, 4.78968, CalculationConvergence.CalculatedConverged); locations.ElementAt(8).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 4.20, targetProbability, 4.79014, - 1.0/1197324, 4.78969, + 1.0 / 1197324, 4.78969, CalculationConvergence.CalculatedConverged); locations.ElementAt(9).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 4.41, targetProbability, 4.79014, - 1.0/1197324, 4.78969, + 1.0 / 1197324, 4.78969, CalculationConvergence.CalculatedConverged); locations.ElementAt(10).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 4.50, targetProbability, 4.79014, - 1.0/1197622, 4.78974, + 1.0 / 1197622, 4.78974, CalculationConvergence.CalculatedConverged); locations.ElementAt(11).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 4.57, targetProbability, 4.79014, - 1.0/1197145, 4.78966, + 1.0 / 1197145, 4.78966, CalculationConvergence.CalculatedConverged); locations.ElementAt(12).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 4.63, targetProbability, 4.79014, - 1.0/1196608, 4.78957, + 1.0 / 1196608, 4.78957, CalculationConvergence.CalculatedConverged); locations.ElementAt(13).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 4.68, targetProbability, 4.79014, - 1.0/1196549, 4.78956, + 1.0 / 1196549, 4.78956, CalculationConvergence.CalculatedConverged); locations.ElementAt(14).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 4.17, targetProbability, 4.79014, - 1.0/1199713, 4.79009, + 1.0 / 1199713, 4.79009, CalculationConvergence.CalculatedConverged); locations.ElementAt(15).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 11.13, targetProbability, 4.79014, - 1.0/201269, 4.79035, + 1.0 / 201269, 4.79035, CalculationConvergence.CalculatedConverged); locations.ElementAt(16).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 9.24, targetProbability, 4.79014, - 1.0/197742, 4.78976, + 1.0 / 197742, 4.78976, CalculationConvergence.CalculatedConverged); locations.ElementAt(17).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 5.34, targetProbability, 4.79014, - 1.0/199056, 4.78998, + 1.0 / 199056, 4.78998, CalculationConvergence.CalculatedConverged); } @@ -742,191 +742,191 @@ private static void SetHydraulicBoundaryLocationDesignWaterLevelOutputValues(ICollection locations) { - const double targetProbability = 1.0/30000; + const double targetProbability = 1.0 / 30000; locations.ElementAt(0).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 5.78, targetProbability, 3.98788, - 1.0/29996, 3.98785, + 1.0 / 29996, 3.98785, CalculationConvergence.CalculatedConverged); locations.ElementAt(1).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 5.77, targetProbability, 3.98787893, - 1.0/29996, 3.98785, + 1.0 / 29996, 3.98785, CalculationConvergence.CalculatedConverged); locations.ElementAt(2).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 5.77, targetProbability, 3.98788, - 1.0/29996, 3.98785, + 1.0 / 29996, 3.98785, CalculationConvergence.CalculatedConverged); locations.ElementAt(3).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 5.77, targetProbability, 3.98788, - 1.0/29996, 3.98785, + 1.0 / 29996, 3.98785, CalculationConvergence.CalculatedConverged); locations.ElementAt(4).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 5.76865, targetProbability, 3.98788, - 1.0/29996, 3.98784, + 1.0 / 29996, 3.98784, CalculationConvergence.CalculatedConverged); locations.ElementAt(5).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 5.93, targetProbability, 3.98788, - 1.0/29995, 3.98784, + 1.0 / 29995, 3.98784, CalculationConvergence.CalculatedConverged); locations.ElementAt(6).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 5.93, targetProbability, 3.98788, - 1.0/29995, 3.98784, + 1.0 / 29995, 3.98784, CalculationConvergence.CalculatedConverged); locations.ElementAt(7).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 5.93, targetProbability, 3.98788, - 1.0/29995, 3.98784, + 1.0 / 29995, 3.98784, CalculationConvergence.CalculatedConverged); locations.ElementAt(8).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 5.93, targetProbability, 3.98788, - 1.0/29995, 3.98784, + 1.0 / 29995, 3.98784, CalculationConvergence.CalculatedConverged); locations.ElementAt(9).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 5.93, targetProbability, 3.98788, - 1.0/29995, 3.98784, + 1.0 / 29995, 3.98784, CalculationConvergence.CalculatedConverged); locations.ElementAt(10).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 5.93, targetProbability, 3.98788, - 1.0/29995, 3.98784, + 1.0 / 29995, 3.98784, CalculationConvergence.CalculatedConverged); locations.ElementAt(11).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 5.93, targetProbability, 3.98788, - 1.0/29995, 3.98784, + 1.0 / 29995, 3.98784, CalculationConvergence.CalculatedConverged); locations.ElementAt(12).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 5.93, targetProbability, 3.98788, - 1.0/29995, 3.98784, + 1.0 / 29995, 3.98784, CalculationConvergence.CalculatedConverged); locations.ElementAt(13).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 5.93, targetProbability, 3.98788, - 1.0/29995, 3.98784, + 1.0 / 29995, 3.98784, CalculationConvergence.CalculatedConverged); locations.ElementAt(14).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 5.93, targetProbability, 3.98788, - 1.0/29995, 3.98784, + 1.0 / 29995, 3.98784, CalculationConvergence.CalculatedConverged); locations.ElementAt(15).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 5.54, targetProbability, 3.98788, - 1.0/29996, 3.98785, + 1.0 / 29996, 3.98785, CalculationConvergence.CalculatedConverged); locations.ElementAt(16).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 5.86, targetProbability, 3.98788, - 1.0/29994, 3.98783, + 1.0 / 29994, 3.98783, CalculationConvergence.CalculatedConverged); locations.ElementAt(17).DesignWaterLevelOutput = new HydraulicBoundaryLocationOutput( 6.00, targetProbability, 3.98788, - 1.0/29993, 3.98782, + 1.0 / 29993, 3.98782, CalculationConvergence.CalculatedConverged); } private static void SetHydraulicBoundaryLocationWaveHeightOutputValues(ICollection locations) { - const double targetProbability = 1.0/30000; + const double targetProbability = 1.0 / 30000; locations.ElementAt(0).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 4.13, targetProbability, 3.98788, - 1.0/29972, 3.98766, + 1.0 / 29972, 3.98766, CalculationConvergence.CalculatedConverged); locations.ElementAt(1).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 4.19, targetProbability, 3.98788, - 1.0/29962, 3.98770, + 1.0 / 29962, 3.98770, CalculationConvergence.CalculatedConverged); locations.ElementAt(2).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 4.02, targetProbability, 3.98788, - 1.0/29977, 3.98758, + 1.0 / 29977, 3.98758, CalculationConvergence.CalculatedConverged); locations.ElementAt(3).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 3.87, targetProbability, 3.98788, - 1.0/29963, 3.98759, + 1.0 / 29963, 3.98759, CalculationConvergence.CalculatedConverged); locations.ElementAt(4).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 3.73, targetProbability, 3.98788, - 1.0/29957, 3.98754, + 1.0 / 29957, 3.98754, CalculationConvergence.CalculatedConverged); locations.ElementAt(5).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 2.65, targetProbability, 3.98788, - 1.0/30022, 3.98805, + 1.0 / 30022, 3.98805, CalculationConvergence.CalculatedConverged); locations.ElementAt(6).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 3.04, targetProbability, 3.98788, - 1.0/30001, 3.98789, + 1.0 / 30001, 3.98789, CalculationConvergence.CalculatedConverged); locations.ElementAt(7).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 3.20, targetProbability, 3.98788, - 1.0/30000, 3.98788, + 1.0 / 30000, 3.98788, CalculationConvergence.CalculatedConverged); locations.ElementAt(8).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 3.35, targetProbability, 3.98788, - 1.0/29996, 3.98785, + 1.0 / 29996, 3.98785, CalculationConvergence.CalculatedConverged); locations.ElementAt(9).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 3.53, targetProbability, 3.98788, - 1.0/29999, 3.98787, + 1.0 / 29999, 3.98787, CalculationConvergence.CalculatedConverged); locations.ElementAt(10).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 3.62, targetProbability, 3.98788, - 1.0/29888, 3.98699, + 1.0 / 29888, 3.98699, CalculationConvergence.CalculatedConverged); locations.ElementAt(11).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 3.68, targetProbability, 3.98788, - 1.0/29890, 3.98701, + 1.0 / 29890, 3.98701, CalculationConvergence.CalculatedConverged); locations.ElementAt(12).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 3.73, targetProbability, 3.98788, - 1.0/29882, 3.98694, + 1.0 / 29882, 3.98694, CalculationConvergence.CalculatedConverged); locations.ElementAt(13).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 3.75, targetProbability, 3.98788, - 1.0/29902, 3.98710, + 1.0 / 29902, 3.98710, CalculationConvergence.CalculatedConverged); locations.ElementAt(14).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 3.30, targetProbability, 3.98788, - 1.0/30037, 3.98817, + 1.0 / 30037, 3.98817, CalculationConvergence.CalculatedConverged); locations.ElementAt(15).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 9.57, targetProbability, 3.98788, - 1.0/29999, 3.98787, + 1.0 / 29999, 3.98787, CalculationConvergence.CalculatedConverged); locations.ElementAt(16).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 8.02, targetProbability, 3.98788, - 1.0/30108, 3.98873, + 1.0 / 30108, 3.98873, CalculationConvergence.CalculatedConverged); locations.ElementAt(17).WaveHeightOutput = new HydraulicBoundaryLocationOutput( 4.11, targetProbability, 3.98788, - 1.0/29929, 3.98732, + 1.0 / 29929, 3.98732, CalculationConvergence.CalculatedConverged); } Index: Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Forms/StabilityStoneCoverCalculationConfigurationHelper.cs =================================================================== diff -u -re182f6f394aa75e739467a77e7bcacd9a8b25429 -rde1aa96304b19f865ef456a1ab901a681994c361 --- Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Forms/StabilityStoneCoverCalculationConfigurationHelper.cs (.../StabilityStoneCoverCalculationConfigurationHelper.cs) (revision e182f6f394aa75e739467a77e7bcacd9a8b25429) +++ Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Forms/StabilityStoneCoverCalculationConfigurationHelper.cs (.../StabilityStoneCoverCalculationConfigurationHelper.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -44,7 +44,7 @@ public static void AddCalculationsFromLocations( IEnumerable locations, IList calculations - ) + ) { if (locations == null) { Index: Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Forms/Views/StabilityStoneCoverMapDataFeaturesFactory.cs =================================================================== diff -u -r8905298103eb01ce13dd5c1a2f267f879d4fda3e -rde1aa96304b19f865ef456a1ab901a681994c361 --- Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Forms/Views/StabilityStoneCoverMapDataFeaturesFactory.cs (.../StabilityStoneCoverMapDataFeaturesFactory.cs) (revision 8905298103eb01ce13dd5c1a2f267f879d4fda3e) +++ Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Forms/Views/StabilityStoneCoverMapDataFeaturesFactory.cs (.../StabilityStoneCoverMapDataFeaturesFactory.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -49,15 +49,15 @@ } var calculationsWithLocationAndHydraulicBoundaryLocation = calculationInputs.Where(calculation => - calculation.InputParameters.ForeshoreProfile != null && - calculation.InputParameters.HydraulicBoundaryLocation != null); + calculation.InputParameters.ForeshoreProfile != null && + calculation.InputParameters.HydraulicBoundaryLocation != null); MapCalculationData[] calculationData = calculationsWithLocationAndHydraulicBoundaryLocation.Select( calculation => new MapCalculationData( - calculation.Name, - calculation.InputParameters.ForeshoreProfile.WorldReferencePoint, - calculation.InputParameters.HydraulicBoundaryLocation)).ToArray(); + calculation.Name, + calculation.InputParameters.ForeshoreProfile.WorldReferencePoint, + calculation.InputParameters.HydraulicBoundaryLocation)).ToArray(); return RingtoetsMapDataFeaturesFactory.CreateCalculationFeatures(calculationData); } Index: Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Service/StabilityStoneCoverWaveConditionsCalculationService.cs =================================================================== diff -u -r30327d029fa4a87a0acd139798d6966420be4ed2 -rde1aa96304b19f865ef456a1ab901a681994c361 --- Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Service/StabilityStoneCoverWaveConditionsCalculationService.cs (.../StabilityStoneCoverWaveConditionsCalculationService.cs) (revision 30327d029fa4a87a0acd139798d6966420be4ed2) +++ Ringtoets/StabilityStoneCover/src/Ringtoets.StabilityStoneCover.Service/StabilityStoneCoverWaveConditionsCalculationService.cs (.../StabilityStoneCoverWaveConditionsCalculationService.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -87,7 +87,7 @@ var ringId = assessmentSection.Id; var norm = assessmentSection.FailureMechanismContribution.Norm; - TotalWaterLevelCalculations = calculation.InputParameters.WaterLevels.Count()*2; + TotalWaterLevelCalculations = calculation.InputParameters.WaterLevels.Count() * 2; try { Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/PresentationObjects/StabilityStoneCoverContextTest.cs =================================================================== diff -u -r5387346fe4a7aa93e72d71f86c1e4d0a22a73f91 -rde1aa96304b19f865ef456a1ab901a681994c361 --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/PresentationObjects/StabilityStoneCoverContextTest.cs (.../StabilityStoneCoverContextTest.cs) (revision 5387346fe4a7aa93e72d71f86c1e4d0a22a73f91) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/PresentationObjects/StabilityStoneCoverContextTest.cs (.../StabilityStoneCoverContextTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -116,7 +116,7 @@ public SimpleStabilityStoneCoverContext(IObservable wrappedData, StabilityStoneCoverFailureMechanism failureMechanism, IAssessmentSection assessmentSection) : - base(wrappedData, failureMechanism, assessmentSection) {} + base(wrappedData, failureMechanism, assessmentSection) {} } } } \ No newline at end of file Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/Views/StabilityStoneCoverSectionResultRowTest.cs =================================================================== diff -u -rfd75ff7d1794c6a64fd3ce1aa1f159effba2e102 -rde1aa96304b19f865ef456a1ab901a681994c361 --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/Views/StabilityStoneCoverSectionResultRowTest.cs (.../StabilityStoneCoverSectionResultRowTest.cs) (revision fd75ff7d1794c6a64fd3ce1aa1f159effba2e102) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/Views/StabilityStoneCoverSectionResultRowTest.cs (.../StabilityStoneCoverSectionResultRowTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -66,7 +66,7 @@ Assert.IsTrue(TypeUtils.HasTypeConverter( - r => r.AssessmentLayerThree)); + r => r.AssessmentLayerThree)); } [Test] Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Integration.Test/StabilityStoneCoverWaveConditionsCalculationActivityIntegrationTest.cs =================================================================== diff -u -r19db52c6c2776ade0a18342b78f1d64f809ce9d7 -rde1aa96304b19f865ef456a1ab901a681994c361 --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Integration.Test/StabilityStoneCoverWaveConditionsCalculationActivityIntegrationTest.cs (.../StabilityStoneCoverWaveConditionsCalculationActivityIntegrationTest.cs) (revision 19db52c6c2776ade0a18342b78f1d64f809ce9d7) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Integration.Test/StabilityStoneCoverWaveConditionsCalculationActivityIntegrationTest.cs (.../StabilityStoneCoverWaveConditionsCalculationActivityIntegrationTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -128,10 +128,10 @@ // Assert var waterLevels = calculation.InputParameters.WaterLevels.ToArray(); - var totalSteps = waterLevels.Length*2; + var totalSteps = waterLevels.Length * 2; for (var i = 0; i < totalSteps; i++) { - var text = string.Format("Stap {0} van {1} | Waterstand '{2}' berekenen.", i + 1, totalSteps, waterLevels[i%waterLevels.Length]); + var text = string.Format("Stap {0} van {1} | Waterstand '{2}' berekenen.", i + 1, totalSteps, waterLevels[i % waterLevels.Length]); Assert.AreEqual(text, progessTexts[i]); } } @@ -173,7 +173,7 @@ Assert.AreEqual(assessmentSectionStub.Id, testWaveConditionsCosineCalculator.RingId); int waterLevelIndex = 0; - for (int i = 0; i < testWaveConditionsInputs.Length/2; i++) + for (int i = 0; i < testWaveConditionsInputs.Length / 2; i++) { var expectedInput = new WaveConditionsCosineCalculationInput(1, input.Orientation, @@ -190,7 +190,7 @@ } waterLevelIndex = 0; - for (int i = testWaveConditionsInputs.Length/2; i < testWaveConditionsInputs.Length; i++) + for (int i = testWaveConditionsInputs.Length / 2; i < testWaveConditionsInputs.Length; i++) { var expectedInput = new WaveConditionsCosineCalculationInput(1, input.Orientation, Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Service.Test/StabilityStoneCoverWaveConditionsCalculationServiceTest.cs =================================================================== diff -u -r19db52c6c2776ade0a18342b78f1d64f809ce9d7 -rde1aa96304b19f865ef456a1ab901a681994c361 --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Service.Test/StabilityStoneCoverWaveConditionsCalculationServiceTest.cs (.../StabilityStoneCoverWaveConditionsCalculationServiceTest.cs) (revision 19db52c6c2776ade0a18342b78f1d64f809ce9d7) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Service.Test/StabilityStoneCoverWaveConditionsCalculationServiceTest.cs (.../StabilityStoneCoverWaveConditionsCalculationServiceTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -399,13 +399,13 @@ { var waterLevels = calculation.InputParameters.WaterLevels.ToArray(); int currentStep = 1; - var totalSteps = waterLevels.Length*2; + var totalSteps = waterLevels.Length * 2; var stabilityStoneCoverWaveConditionsCalculationService = new StabilityStoneCoverWaveConditionsCalculationService(); stabilityStoneCoverWaveConditionsCalculationService.OnProgress += (description, step, steps) => { // Assert - var text = string.Format("Waterstand '{0}' berekenen.", waterLevels[(step - 1)%waterLevels.Length]); + var text = string.Format("Waterstand '{0}' berekenen.", waterLevels[(step - 1) % waterLevels.Length]); Assert.AreEqual(text, description); Assert.AreEqual(currentStep++, step); Assert.AreEqual(totalSteps, steps); @@ -450,7 +450,7 @@ Assert.AreEqual(assessmentSectionStub.Id, testWaveConditionsCosineCalculator.RingId); int waterLevelIndex = 0; - for (int i = 0; i < testWaveConditionsInputs.Length/2; i++) + for (int i = 0; i < testWaveConditionsInputs.Length / 2; i++) { var expectedInput = new WaveConditionsCosineCalculationInput(1, input.Orientation, @@ -467,7 +467,7 @@ } waterLevelIndex = 0; - for (int i = testWaveConditionsInputs.Length/2; i < testWaveConditionsInputs.Length; i++) + for (int i = testWaveConditionsInputs.Length / 2; i < testWaveConditionsInputs.Length; i++) { var expectedInput = new WaveConditionsCosineCalculationInput(1, input.Orientation, Index: Ringtoets/WaveImpactAsphaltCover/src/Ringtoets.WaveImpactAsphaltCover.Forms/Views/WaveImpactAsphaltCoverMapDataFeaturesFactory.cs =================================================================== diff -u -r8905298103eb01ce13dd5c1a2f267f879d4fda3e -rde1aa96304b19f865ef456a1ab901a681994c361 --- Ringtoets/WaveImpactAsphaltCover/src/Ringtoets.WaveImpactAsphaltCover.Forms/Views/WaveImpactAsphaltCoverMapDataFeaturesFactory.cs (.../WaveImpactAsphaltCoverMapDataFeaturesFactory.cs) (revision 8905298103eb01ce13dd5c1a2f267f879d4fda3e) +++ Ringtoets/WaveImpactAsphaltCover/src/Ringtoets.WaveImpactAsphaltCover.Forms/Views/WaveImpactAsphaltCoverMapDataFeaturesFactory.cs (.../WaveImpactAsphaltCoverMapDataFeaturesFactory.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -49,15 +49,15 @@ } var calculationsWithLocationAndHydraulicBoundaryLocation = calculationInputs.Where(calculation => - calculation.InputParameters.ForeshoreProfile != null && - calculation.InputParameters.HydraulicBoundaryLocation != null); + calculation.InputParameters.ForeshoreProfile != null && + calculation.InputParameters.HydraulicBoundaryLocation != null); MapCalculationData[] calculationData = calculationsWithLocationAndHydraulicBoundaryLocation.Select( calculation => new MapCalculationData( - calculation.Name, - calculation.InputParameters.ForeshoreProfile.WorldReferencePoint, - calculation.InputParameters.HydraulicBoundaryLocation)).ToArray(); + calculation.Name, + calculation.InputParameters.ForeshoreProfile.WorldReferencePoint, + calculation.InputParameters.HydraulicBoundaryLocation)).ToArray(); return RingtoetsMapDataFeaturesFactory.CreateCalculationFeatures(calculationData); } Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/TreeNodeInfos/WaveImpactAsphaltCoverFailureMechanismContextTreeNodeInfoTest.cs =================================================================== diff -u -rd72a7a2a430e8adaaf5357c10feb66e1f715d3b6 -rde1aa96304b19f865ef456a1ab901a681994c361 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/TreeNodeInfos/WaveImpactAsphaltCoverFailureMechanismContextTreeNodeInfoTest.cs (.../WaveImpactAsphaltCoverFailureMechanismContextTreeNodeInfoTest.cs) (revision d72a7a2a430e8adaaf5357c10feb66e1f715d3b6) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/TreeNodeInfos/WaveImpactAsphaltCoverFailureMechanismContextTreeNodeInfoTest.cs (.../WaveImpactAsphaltCoverFailureMechanismContextTreeNodeInfoTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -226,7 +226,7 @@ Assert.AreEqual(2, outputsFolder.Contents.Count); var failureMechanismResultsContext = (FailureMechanismSectionResultContext) - outputsFolder.Contents[0]; + outputsFolder.Contents[0]; Assert.AreSame(failureMechanism, failureMechanismResultsContext.FailureMechanism); Assert.AreSame(failureMechanism.SectionResults, failureMechanismResultsContext.WrappedData); Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Service.Test/WaveImpactAsphaltCoverDataSynchronizationServiceTest.cs =================================================================== diff -u -r8905298103eb01ce13dd5c1a2f267f879d4fda3e -rde1aa96304b19f865ef456a1ab901a681994c361 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Service.Test/WaveImpactAsphaltCoverDataSynchronizationServiceTest.cs (.../WaveImpactAsphaltCoverDataSynchronizationServiceTest.cs) (revision 8905298103eb01ce13dd5c1a2f267f879d4fda3e) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Service.Test/WaveImpactAsphaltCoverDataSynchronizationServiceTest.cs (.../WaveImpactAsphaltCoverDataSynchronizationServiceTest.cs) (revision de1aa96304b19f865ef456a1ab901a681994c361) @@ -92,7 +92,7 @@ { // Call TestDelegate call = () => - WaveImpactAsphaltCoverDataSynchronizationService.ClearAllWaveConditionsCalculationOutputAndHydraulicBoundaryLocations(null); + WaveImpactAsphaltCoverDataSynchronizationService.ClearAllWaveConditionsCalculationOutputAndHydraulicBoundaryLocations(null); // Assert var exception = Assert.Throws(call);