Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -rc4f859b931595013937ea8f7ff31b34b87fc0999 -rb9a59dd5f30c8de46d0cabb4e1609c09176a4246 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationContextTreeNodeInfoTest.cs (.../HeightStructuresCalculationContextTreeNodeInfoTest.cs) (revision c4f859b931595013937ea8f7ff31b34b87fc0999) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationContextTreeNodeInfoTest.cs (.../HeightStructuresCalculationContextTreeNodeInfoTest.cs) (revision b9a59dd5f30c8de46d0cabb4e1609c09176a4246) @@ -361,7 +361,7 @@ ToolStripItem contextMenuItem = contextMenu.Items[contextMenuCalculateIndex]; Assert.AreEqual(RingtoetsCommonFormsResources.Calculate, contextMenuItem.Text); - StringAssert.Contains(string.Format((string) RingtoetsCommonServicesResources.Hydraulic_boundary_database_connection_failed_0_, ""), contextMenuItem.ToolTipText); + StringAssert.Contains(string.Format(RingtoetsCommonServicesResources.Hydraulic_boundary_database_connection_failed_0_, ""), contextMenuItem.ToolTipText); TestHelper.AssertImagesAreEqual(RingtoetsCommonFormsResources.CalculateIcon, contextMenuItem.Image); Assert.IsFalse(contextMenuItem.Enabled); } @@ -519,7 +519,7 @@ ToolStripItem contextMenuItem = contextMenu.Items[contextMenuValidateIndex]; Assert.AreEqual(RingtoetsCommonFormsResources.Validate, contextMenuItem.Text); - StringAssert.Contains(string.Format((string) RingtoetsCommonServicesResources.Hydraulic_boundary_database_connection_failed_0_, ""), contextMenuItem.ToolTipText); + StringAssert.Contains(string.Format(RingtoetsCommonServicesResources.Hydraulic_boundary_database_connection_failed_0_, ""), contextMenuItem.ToolTipText); TestHelper.AssertImagesAreEqual(RingtoetsCommonFormsResources.ValidateIcon, contextMenuItem.Image); Assert.IsFalse(contextMenuItem.Enabled); } @@ -646,12 +646,12 @@ { 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(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("Hoogte 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]); + 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); @@ -719,8 +719,8 @@ { 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]); + 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]); }); } }