Index: Ringtoets/Common/test/Ringtoets.Common.IO.Test/FileImporters/FailureMechanismSectionsImporterTest.cs =================================================================== diff -u -rd1bf253a0e3f11a168b4e185c4413c23995a1e8b -r31f4ca2b08257cf05459f63e0d715239e3d90c55 --- Ringtoets/Common/test/Ringtoets.Common.IO.Test/FileImporters/FailureMechanismSectionsImporterTest.cs (.../FailureMechanismSectionsImporterTest.cs) (revision d1bf253a0e3f11a168b4e185c4413c23995a1e8b) +++ Ringtoets/Common/test/Ringtoets.Common.IO.Test/FileImporters/FailureMechanismSectionsImporterTest.cs (.../FailureMechanismSectionsImporterTest.cs) (revision 31f4ca2b08257cf05459f63e0d715239e3d90c55) @@ -34,6 +34,7 @@ using Ringtoets.Common.Data.FailureMechanism; using Ringtoets.Common.IO.FileImporters; using Ringtoets.Common.IO.ReferenceLines; +using Ringtoets.Common.IO.TestUtil; namespace Ringtoets.Common.IO.Test.FileImporters { @@ -198,15 +199,9 @@ new ProgressNotification("Valideren ingelezen vakindeling.", 2, 3), new ProgressNotification("Geïmporteerde data toevoegen aan het toetsspoor.", 3, 3) }; - Assert.AreEqual(expectedProgressMessages.Length, progressChangeNotifications.Count); - for (var i = 0; i < expectedProgressMessages.Length; i++) - { - ProgressNotification notification = expectedProgressMessages[i]; - ProgressNotification actualNotification = progressChangeNotifications[i]; - Assert.AreEqual(notification.Text, actualNotification.Text); - Assert.AreEqual(notification.CurrentStep, actualNotification.CurrentStep); - Assert.AreEqual(notification.TotalSteps, actualNotification.TotalSteps); - } + + ProgressNotificationTestHelper.AssertProgressNotificationsAreEqual(expectedProgressMessages, + progressChangeNotifications); } [Test] @@ -657,19 +652,5 @@ } } } - - private class ProgressNotification - { - public ProgressNotification(string description, int currentStep, int totalSteps) - { - Text = description; - CurrentStep = currentStep; - TotalSteps = totalSteps; - } - - public string Text { get; } - public int CurrentStep { get; } - public int TotalSteps { get; } - } } } \ No newline at end of file