Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/AssemblyResultTotalViewTest.cs =================================================================== diff -u -r97870b3df4cde6fcdba35ad93adfed19d88b5f7a -r8f7a19a208f1acd5bd20bd602e4c8627a4f76ac7 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/AssemblyResultTotalViewTest.cs (.../AssemblyResultTotalViewTest.cs) (revision 97870b3df4cde6fcdba35ad93adfed19d88b5f7a) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/AssemblyResultTotalViewTest.cs (.../AssemblyResultTotalViewTest.cs) (revision 8f7a19a208f1acd5bd20bd602e4c8627a4f76ac7) @@ -453,7 +453,8 @@ public void GivenFormWithAssemblyResultTotalView_WhenFailureMechanismNotifiesObservers_ThenRefreshButtonEnabledAndWarningSet() { // Given - var assessmentSection = new AssessmentSection(new Random(21).NextEnumValue()); + var random = new Random(21); + var assessmentSection = new AssessmentSection(random.NextEnumValue()); using (AssemblyResultTotalView view = ShowAssemblyResultTotalView(assessmentSection)) { @@ -465,7 +466,8 @@ Assert.IsEmpty(warningProvider.GetError(button)); // When - assessmentSection.StabilityStoneCover.NotifyObservers(); + IEnumerable failureMechanisms = assessmentSection.GetFailureMechanisms(); + failureMechanisms.ElementAt(random.Next(failureMechanisms.Count())).NotifyObservers(); // Then Assert.IsTrue(buttonTester.Properties.Enabled);