Index: Ringtoets/Common/test/Ringtoets.Common.Service.Test/CalculationServiceHelperTest.cs =================================================================== diff -u -re2786bbbad5456a4b42b68e1d0b0f85f732393d7 -r0f736d81afe800a482dff027fe93128a5e967114 --- Ringtoets/Common/test/Ringtoets.Common.Service.Test/CalculationServiceHelperTest.cs (.../CalculationServiceHelperTest.cs) (revision e2786bbbad5456a4b42b68e1d0b0f85f732393d7) +++ Ringtoets/Common/test/Ringtoets.Common.Service.Test/CalculationServiceHelperTest.cs (.../CalculationServiceHelperTest.cs) (revision 0f736d81afe800a482dff027fe93128a5e967114) @@ -232,17 +232,18 @@ { // Setup const string message = "Message"; + var exception = new Exception(); // Call - Action call = () => CalculationServiceHelper.LogExceptionAsError(message, new Exception()); + Action call = () => CalculationServiceHelper.LogExceptionAsError(message, exception); // Assert TestHelper.AssertLogMessagesWithLevelAndLoggedExceptions(call, tuples => { Tuple tuple = tuples.Single(); Assert.AreEqual(message, tuple.Item1); Assert.AreEqual(Level.Error, tuple.Item2); - Assert.IsInstanceOf(tuple.Item3); + Assert.AreSame(exception, tuple.Item3); }); } }