Index: Ringtoets/Common/test/Ringtoets.Common.Plugin.TestUtil/HydraulicBoundaryLocationCalculationActivityTestHelper.cs
===================================================================
diff -u
--- Ringtoets/Common/test/Ringtoets.Common.Plugin.TestUtil/HydraulicBoundaryLocationCalculationActivityTestHelper.cs (revision 0)
+++ Ringtoets/Common/test/Ringtoets.Common.Plugin.TestUtil/HydraulicBoundaryLocationCalculationActivityTestHelper.cs (revision 7a522db606159a6bea54bdb2b5370460c786336a)
@@ -0,0 +1,59 @@
+// 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.Collections.Generic;
+using System.Linq;
+using NUnit.Framework;
+using Ringtoets.Common.Service.TestUtil;
+
+namespace Ringtoets.Common.Plugin.TestUtil
+{
+ ///
+ /// Class containing helper methods used to assert the log messages of a calculation activity
+ /// for hydraulic boundary location calculations.
+ ///
+ public static class HydraulicBoundaryLocationCalculationActivityTestHelper
+ {
+ ///
+ /// Asserts whether contains the correct items given the other parameters.
+ ///
+ /// The name of the location.
+ /// The type of calculation being performed.
+ /// The category boundary name of the calculation.
+ /// The log messages to assert.
+ /// The index to start asserting from.
+ public static void AssertHydraulicBoundaryLocationCalculationMessages(string locationName,
+ string type,
+ string categoryName,
+ IEnumerable actualMessages,
+ int startIndex)
+ {
+ Assert.AreEqual($"{type} berekenen voor locatie '{locationName}' (Categorie {categoryName}) is gestart.", actualMessages.ElementAt(startIndex));
+ CalculationServiceTestHelper.AssertValidationStartMessage(actualMessages.ElementAt(startIndex + 1));
+ CalculationServiceTestHelper.AssertValidationEndMessage(actualMessages.ElementAt(startIndex + 2));
+ CalculationServiceTestHelper.AssertCalculationStartMessage(actualMessages.ElementAt(startIndex + 3));
+ Assert.AreEqual($"{type} berekening voor locatie '{locationName}' (Categorie {categoryName}) is niet geconvergeerd.", actualMessages.ElementAt(startIndex + 4));
+ StringAssert.StartsWith($"{type} berekening is uitgevoerd op de tijdelijke locatie", actualMessages.ElementAt(startIndex + 5));
+ CalculationServiceTestHelper.AssertCalculationEndMessage(actualMessages.ElementAt(startIndex + 6));
+ Assert.AreEqual($"{type} berekenen voor locatie '{locationName}' (Categorie {categoryName}) is gelukt.", actualMessages.ElementAt(startIndex + 7));
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Common/test/Ringtoets.Common.Plugin.TestUtil/Ringtoets.Common.Plugin.TestUtil.csproj
===================================================================
diff -u -r32994139e33b5ef8110cae9d8a15647c5afa2bc9 -r7a522db606159a6bea54bdb2b5370460c786336a
--- Ringtoets/Common/test/Ringtoets.Common.Plugin.TestUtil/Ringtoets.Common.Plugin.TestUtil.csproj (.../Ringtoets.Common.Plugin.TestUtil.csproj) (revision 32994139e33b5ef8110cae9d8a15647c5afa2bc9)
+++ Ringtoets/Common/test/Ringtoets.Common.Plugin.TestUtil/Ringtoets.Common.Plugin.TestUtil.csproj (.../Ringtoets.Common.Plugin.TestUtil.csproj) (revision 7a522db606159a6bea54bdb2b5370460c786336a)
@@ -20,6 +20,7 @@
+
@@ -59,5 +60,9 @@
{4843D6E5-066F-4795-94F5-1D53932DD03C}
Ringtoets.Common.Data.TestUtil
+
+ {52093DA6-D545-476A-ADFD-12F56625E36B}
+ Ringtoets.Common.Service.TestUtil
+
\ No newline at end of file