Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Integration.Test/StabilityStoneCoverWaveConditionsCalculationActivityIntegrationTest.cs =================================================================== diff -u -ra8bc394180aa765a9faeb140a90e60599e64cf3e -rfae525350cc755ecc783bd4ac3fc13aed2e4ccaa --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Integration.Test/StabilityStoneCoverWaveConditionsCalculationActivityIntegrationTest.cs (.../StabilityStoneCoverWaveConditionsCalculationActivityIntegrationTest.cs) (revision a8bc394180aa765a9faeb140a90e60599e64cf3e) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Integration.Test/StabilityStoneCoverWaveConditionsCalculationActivityIntegrationTest.cs (.../StabilityStoneCoverWaveConditionsCalculationActivityIntegrationTest.cs) (revision fae525350cc755ecc783bd4ac3fc13aed2e4ccaa) @@ -93,10 +93,11 @@ TestHelper.AssertLogMessages(call, messages => { string[] msgs = messages.ToArray(); - Assert.AreEqual(3, msgs.Length); - CalculationServiceTestHelper.AssertValidationStartMessage(calculation.Name, msgs[0]); - Assert.AreEqual($"Validatie mislukt: Fout bij het lezen van bestand '{testFilePath}': het bestand bestaat niet.", msgs[1]); - CalculationServiceTestHelper.AssertValidationEndMessage(calculation.Name, msgs[2]); + Assert.AreEqual(4, msgs.Length); + Assert.AreEqual($"Golfcondities voor blokken en zuilen berekenen voor '{calculation.Name}' is gestart.", msgs[0]); + CalculationServiceTestHelper.AssertValidationStartMessage(calculation.Name, msgs[1]); + Assert.AreEqual($"Validatie mislukt: Fout bij het lezen van bestand '{testFilePath}': het bestand bestaat niet.", msgs[2]); + CalculationServiceTestHelper.AssertValidationEndMessage(calculation.Name, msgs[3]); }); Assert.AreEqual(ActivityState.Failed, activity.State); } @@ -252,16 +253,17 @@ string[] msgs = messages.ToArray(); RoundedDouble firstWaterLevel = calculation.InputParameters.WaterLevels.First(); - Assert.AreEqual(9, msgs.Length); - CalculationServiceTestHelper.AssertValidationStartMessage(calculation.Name, msgs[0]); - CalculationServiceTestHelper.AssertValidationEndMessage(calculation.Name, msgs[1]); - CalculationServiceTestHelper.AssertCalculationStartMessage(calculation.Name, msgs[2]); - Assert.AreEqual($"Berekening '{calculation.Name}' voor blokken gestart.", msgs[3]); - Assert.AreEqual($"Berekening '{calculation.Name}' voor waterstand '{firstWaterLevel}' is gestart.", msgs[4]); - StringAssert.StartsWith("Golfcondities berekening is uitgevoerd op de tijdelijke locatie", msgs[5]); - Assert.AreEqual($"Berekening '{calculation.Name}' voor waterstand '{firstWaterLevel}' is beëindigd.", msgs[6]); - Assert.AreEqual($"Berekening '{calculation.Name}' voor blokken beëindigd.", msgs[7]); - CalculationServiceTestHelper.AssertCalculationEndMessage(calculation.Name, msgs[8]); + Assert.AreEqual(10, msgs.Length); + Assert.AreEqual($"Golfcondities voor blokken en zuilen berekenen voor '{calculation.Name}' is gestart.", msgs[0]); + CalculationServiceTestHelper.AssertValidationStartMessage(calculation.Name, msgs[1]); + CalculationServiceTestHelper.AssertValidationEndMessage(calculation.Name, msgs[2]); + CalculationServiceTestHelper.AssertCalculationStartMessage(calculation.Name, msgs[3]); + Assert.AreEqual($"Berekening '{calculation.Name}' voor blokken gestart.", msgs[4]); + Assert.AreEqual($"Berekening '{calculation.Name}' voor waterstand '{firstWaterLevel}' is gestart.", msgs[5]); + StringAssert.StartsWith("Golfcondities berekening is uitgevoerd op de tijdelijke locatie", msgs[6]); + Assert.AreEqual($"Berekening '{calculation.Name}' voor waterstand '{firstWaterLevel}' is beëindigd.", msgs[7]); + Assert.AreEqual($"Berekening '{calculation.Name}' voor blokken beëindigd.", msgs[8]); + CalculationServiceTestHelper.AssertCalculationEndMessage(calculation.Name, msgs[9]); }); Assert.AreEqual(ActivityState.Canceled, activity.State); @@ -308,27 +310,28 @@ string[] msgs = messages.ToArray(); RoundedDouble[] waterLevels = calculation.InputParameters.WaterLevels.ToArray(); - Assert.AreEqual(20, msgs.Length); - CalculationServiceTestHelper.AssertValidationStartMessage(calculation.Name, msgs[0]); - CalculationServiceTestHelper.AssertValidationEndMessage(calculation.Name, msgs[1]); - CalculationServiceTestHelper.AssertCalculationStartMessage(calculation.Name, msgs[2]); - Assert.AreEqual($"Berekening '{calculation.Name}' voor blokken gestart.", msgs[3]); - Assert.AreEqual($"Berekening '{calculation.Name}' voor waterstand '{waterLevels[0]}' is gestart.", msgs[4]); - StringAssert.StartsWith("Golfcondities berekening is uitgevoerd op de tijdelijke locatie", msgs[5]); - Assert.AreEqual($"Berekening '{calculation.Name}' voor waterstand '{waterLevels[0]}' is beëindigd.", msgs[6]); - Assert.AreEqual($"Berekening '{calculation.Name}' voor waterstand '{waterLevels[1]}' is gestart.", msgs[7]); - StringAssert.StartsWith("Golfcondities berekening is uitgevoerd op de tijdelijke locatie", msgs[8]); - Assert.AreEqual($"Berekening '{calculation.Name}' voor waterstand '{waterLevels[1]}' is beëindigd.", msgs[9]); - Assert.AreEqual($"Berekening '{calculation.Name}' voor waterstand '{waterLevels[2]}' is gestart.", msgs[10]); - StringAssert.StartsWith("Golfcondities berekening is uitgevoerd op de tijdelijke locatie", msgs[11]); - Assert.AreEqual($"Berekening '{calculation.Name}' voor waterstand '{waterLevels[2]}' is beëindigd.", msgs[12]); - Assert.AreEqual($"Berekening '{calculation.Name}' voor blokken beëindigd.", msgs[13]); - Assert.AreEqual($"Berekening '{calculation.Name}' voor zuilen gestart.", msgs[14]); - Assert.AreEqual($"Berekening '{calculation.Name}' voor waterstand '{waterLevels[0]}' is gestart.", msgs[15]); - StringAssert.StartsWith("Golfcondities berekening is uitgevoerd op de tijdelijke locatie", msgs[16]); - Assert.AreEqual($"Berekening '{calculation.Name}' voor waterstand '{waterLevels[0]}' is beëindigd.", msgs[17]); - Assert.AreEqual($"Berekening '{calculation.Name}' voor zuilen beëindigd.", msgs[18]); - Assert.AreEqual($"Berekening van '{calculation.Name}' is beëindigd.", msgs[19]); + Assert.AreEqual(21, msgs.Length); + Assert.AreEqual($"Golfcondities voor blokken en zuilen berekenen voor '{calculation.Name}' is gestart.", msgs[0]); + CalculationServiceTestHelper.AssertValidationStartMessage(calculation.Name, msgs[1]); + CalculationServiceTestHelper.AssertValidationEndMessage(calculation.Name, msgs[2]); + CalculationServiceTestHelper.AssertCalculationStartMessage(calculation.Name, msgs[3]); + Assert.AreEqual($"Berekening '{calculation.Name}' voor blokken gestart.", msgs[4]); + Assert.AreEqual($"Berekening '{calculation.Name}' voor waterstand '{waterLevels[0]}' is gestart.", msgs[5]); + StringAssert.StartsWith("Golfcondities berekening is uitgevoerd op de tijdelijke locatie", msgs[6]); + Assert.AreEqual($"Berekening '{calculation.Name}' voor waterstand '{waterLevels[0]}' is beëindigd.", msgs[7]); + Assert.AreEqual($"Berekening '{calculation.Name}' voor waterstand '{waterLevels[1]}' is gestart.", msgs[8]); + StringAssert.StartsWith("Golfcondities berekening is uitgevoerd op de tijdelijke locatie", msgs[9]); + Assert.AreEqual($"Berekening '{calculation.Name}' voor waterstand '{waterLevels[1]}' is beëindigd.", msgs[10]); + Assert.AreEqual($"Berekening '{calculation.Name}' voor waterstand '{waterLevels[2]}' is gestart.", msgs[11]); + StringAssert.StartsWith("Golfcondities berekening is uitgevoerd op de tijdelijke locatie", msgs[12]); + Assert.AreEqual($"Berekening '{calculation.Name}' voor waterstand '{waterLevels[2]}' is beëindigd.", msgs[13]); + Assert.AreEqual($"Berekening '{calculation.Name}' voor blokken beëindigd.", msgs[14]); + Assert.AreEqual($"Berekening '{calculation.Name}' voor zuilen gestart.", msgs[15]); + Assert.AreEqual($"Berekening '{calculation.Name}' voor waterstand '{waterLevels[0]}' is gestart.", msgs[16]); + StringAssert.StartsWith("Golfcondities berekening is uitgevoerd op de tijdelijke locatie", msgs[17]); + Assert.AreEqual($"Berekening '{calculation.Name}' voor waterstand '{waterLevels[0]}' is beëindigd.", msgs[18]); + Assert.AreEqual($"Berekening '{calculation.Name}' voor zuilen beëindigd.", msgs[19]); + Assert.AreEqual($"Berekening van '{calculation.Name}' is beëindigd.", msgs[20]); }); Assert.AreEqual(ActivityState.Canceled, activity.State);