Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -rb4a21813310e188e65bffa91d101131cbd4e0d5b -rb9a59dd5f30c8de46d0cabb4e1609c09176a4246 --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationContextTreeNodeInfoTest.cs) (revision b4a21813310e188e65bffa91d101131cbd4e0d5b) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationContextTreeNodeInfoTest.cs) (revision b9a59dd5f30c8de46d0cabb4e1609c09176a4246) @@ -308,9 +308,9 @@ // Setup var failureMechanism = new ClosingStructuresFailureMechanism(); failureMechanism.AddSection(new FailureMechanismSection("test", new[] - { - new Point2D(0, 0) - })); + { + new Point2D(0, 0) + })); var assessmentSectionStub = mocks.Stub(); @@ -350,9 +350,9 @@ // Setup var failureMechanism = new ClosingStructuresFailureMechanism(); failureMechanism.AddSection(new FailureMechanismSection("test", new[] - { - new Point2D(0, 0) - })); + { + new Point2D(0, 0) + })); var assessmentSectionStub = mocks.Stub(); assessmentSectionStub.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase(); @@ -403,9 +403,9 @@ var failureMechanism = new ClosingStructuresFailureMechanism(); failureMechanism.AddSection(new FailureMechanismSection("test", new[] - { - new Point2D(0, 0) - })); + { + new Point2D(0, 0) + })); var assessmentSectionStub = mocks.Stub(); assessmentSectionStub.HydraulicBoundaryDatabase = hydraulicBoundaryDatabase; @@ -447,10 +447,10 @@ observerMock.Expect(o => o.UpdateObserver()); var section = new FailureMechanismSection("A", new[] - { - new Point2D(1, 2), - new Point2D(3, 4) - }); + { + new Point2D(1, 2), + new Point2D(3, 4) + }); var failureMechanism = new ClosingStructuresFailureMechanism(); failureMechanism.AddSection(section); @@ -506,16 +506,16 @@ // Then TestHelper.AssertLogMessages(action, messages => - { - var msgs = messages.ToArray(); - Assert.AreEqual(6, msgs.Length); - StringAssert.StartsWith(string.Format((string) "Validatie van '{0}' gestart om: ", (object) calculation.Name), msgs[0]); - StringAssert.StartsWith(string.Format((string) "Validatie van '{0}' beëindigd om: ", (object) calculation.Name), msgs[1]); - StringAssert.StartsWith(string.Format((string) "Berekening van '{0}' gestart om: ", (object) calculation.Name), msgs[2]); - StringAssert.StartsWith("Betrouwbaarheid sluiting kunstwerk berekening is uitgevoerd op de tijdelijke locatie", msgs[3]); - StringAssert.StartsWith(string.Format((string) "Berekening van '{0}' beëindigd om: ", (object) calculation.Name), msgs[4]); - StringAssert.StartsWith(string.Format((string) "Uitvoeren van '{0}' is gelukt.", (object) calculation.Name), msgs[5]); - }); + { + var msgs = messages.ToArray(); + Assert.AreEqual(6, msgs.Length); + StringAssert.StartsWith(string.Format("Validatie van '{0}' gestart om: ", calculation.Name), msgs[0]); + StringAssert.StartsWith(string.Format("Validatie van '{0}' beëindigd om: ", calculation.Name), msgs[1]); + StringAssert.StartsWith(string.Format("Berekening van '{0}' gestart om: ", calculation.Name), msgs[2]); + StringAssert.StartsWith("Betrouwbaarheid sluiting kunstwerk berekening is uitgevoerd op de tijdelijke locatie", msgs[3]); + StringAssert.StartsWith(string.Format("Berekening van '{0}' beëindigd om: ", calculation.Name), msgs[4]); + StringAssert.StartsWith(string.Format("Uitvoeren van '{0}' is gelukt.", calculation.Name), msgs[5]); + }); Assert.AreNotSame(initialOutput, calculation.Output); } @@ -529,10 +529,10 @@ var observerMock = mocks.StrictMock(); var section = new FailureMechanismSection("A", new[] - { - new Point2D(1, 2), - new Point2D(3, 4) - }); + { + new Point2D(1, 2), + new Point2D(3, 4) + }); var failureMechanism = new ClosingStructuresFailureMechanism(); failureMechanism.AddSection(section); @@ -578,12 +578,12 @@ // Then TestHelper.AssertLogMessages(action, messages => - { - var msgs = messages.ToArray(); - Assert.AreEqual(2, msgs.Length); - StringAssert.StartsWith(string.Format((string) "Validatie van '{0}' gestart om: ", (object) calculation.Name), msgs[0]); - StringAssert.StartsWith(string.Format((string) "Validatie van '{0}' beëindigd om: ", (object) calculation.Name), msgs[1]); - }); + { + var msgs = messages.ToArray(); + Assert.AreEqual(2, msgs.Length); + StringAssert.StartsWith(string.Format("Validatie van '{0}' gestart om: ", calculation.Name), msgs[0]); + StringAssert.StartsWith(string.Format("Validatie van '{0}' beëindigd om: ", calculation.Name), msgs[1]); + }); } } } @@ -644,9 +644,9 @@ group.Children.Add(elementToBeRemoved); failureMechanism.AddSection(new FailureMechanismSection("section", new[] - { - new Point2D(0, 0) - })); + { + new Point2D(0, 0) + })); ClosingStructuresFailureMechanismSectionResult result = failureMechanism.SectionResults.First(); result.Calculation = elementToBeRemoved;