Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/Contribution/FailureMechanismContributionTest.cs =================================================================== diff -u -ra1bba29ba0d84061cca88da8324957087d564db9 -r9cdd70c8d4ba76d93b72ef8c1b7df138fa73b0e4 --- Ringtoets/Common/test/Ringtoets.Common.Data.Test/Contribution/FailureMechanismContributionTest.cs (.../FailureMechanismContributionTest.cs) (revision a1bba29ba0d84061cca88da8324957087d564db9) +++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/Contribution/FailureMechanismContributionTest.cs (.../FailureMechanismContributionTest.cs) (revision 9cdd70c8d4ba76d93b72ef8c1b7df138fa73b0e4) @@ -156,7 +156,7 @@ var failureMechanismContributions = new Collection(); var failureMechanisms = new Collection(); - var namePrefixFormat = "mechanism_{0}"; + const string namePrefixFormat = "mechanism_{0}"; for (var i = 0; i < failureMechanismCount; i++) { @@ -203,7 +203,7 @@ TestDelegate call = () => failureMechanismContribution.UpdateContributions(null, 0); // Assert - var message = "Kan geen bijdrageoverzicht maken zonder toetsspoor."; + const string message = "Kan geen bijdrageoverzicht maken zonder toetsspoor."; TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, message); } @@ -258,14 +258,14 @@ public void UpdateContributions_FailureMechanismsChangesAfterConstruction_UpdateDistribution(double newOtherContribution) { // Setup - var name1 = "A"; - var name2 = "B"; - var name3 = "C"; - var name4 = "D"; - var contribution1 = 1.1; - var contribution2 = 5.5; - var contribution3 = 23.45; - var contribution4 = 67.89; + const string name1 = "A"; + const string name2 = "B"; + const string name3 = "C"; + const string name4 = "D"; + const double contribution1 = 1.1; + const double contribution2 = 5.5; + const double contribution3 = 23.45; + const double contribution4 = 67.89; var mocks = new MockRepository(); var failureMechanism1 = mocks.Stub();