Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/Views/GrassCoverErosionInwardsFailureMechanismResultViewTest.cs =================================================================== diff -u -rc3d939772601830fd0a15ee54b80d22be25d32f2 -r722adfca20b85c9c04b4552468a98fd652f87450 --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/Views/GrassCoverErosionInwardsFailureMechanismResultViewTest.cs (.../GrassCoverErosionInwardsFailureMechanismResultViewTest.cs) (revision c3d939772601830fd0a15ee54b80d22be25d32f2) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/Views/GrassCoverErosionInwardsFailureMechanismResultViewTest.cs (.../GrassCoverErosionInwardsFailureMechanismResultViewTest.cs) (revision 722adfca20b85c9c04b4552468a98fd652f87450) @@ -22,7 +22,6 @@ using System; using System.Linq; using System.Windows.Forms; -using Core.Common.Util.Extensions; using Core.Common.Util.Reflection; using NUnit.Extensions.Forms; using NUnit.Framework; @@ -209,52 +208,6 @@ } [Test] - public void FailureMechanismResultView_WithFailureMechanismWithManualSectionAssemblyResults_ThenWarningSet() - { - // Setup - var failureMechanism = new GrassCoverErosionInwardsFailureMechanism(); - FailureMechanismTestHelper.AddSections(failureMechanism, 2); - failureMechanism.SectionResults.First().UseManualAssembly = true; - - using (ShowFailureMechanismResultsView(failureMechanism)) - { - FailureMechanismAssemblyControl failureMechanismAssemblyControl = GetFailureMechanismAssemblyControl(); - ErrorProvider manualAssemblyWarningProvider = GetManualAssemblyWarningProvider(failureMechanismAssemblyControl); - - // Call - string warningMessage = manualAssemblyWarningProvider.GetError(failureMechanismAssemblyControl); - - // Assert - Assert.AreEqual("Toetsoordeel is (deels) gebaseerd op handmatig overschreven toetsoordelen.", warningMessage); - } - } - - [Test] - public void GivenFailureMechanismResultsViewWithWarnings_WhenFailureMechanismWithoutManualSectionAssemblyResultsAndFailureMechanismNotifiesObservers_ThenWarningCleared() - { - // Given - var failureMechanism = new GrassCoverErosionInwardsFailureMechanism(); - FailureMechanismTestHelper.AddSections(failureMechanism, 2); - failureMechanism.SectionResults.First().UseManualAssembly = true; - - using (ShowFailureMechanismResultsView(failureMechanism)) - { - FailureMechanismAssemblyControl failureMechanismAssemblyControl = GetFailureMechanismAssemblyControl(); - ErrorProvider manualAssemblyWarningProvider = GetManualAssemblyWarningProvider(failureMechanismAssemblyControl); - - // Precondition - Assert.AreEqual("Toetsoordeel is (deels) gebaseerd op handmatig overschreven toetsoordelen.", manualAssemblyWarningProvider.GetError(failureMechanismAssemblyControl)); - - // When - failureMechanism.SectionResults.ForEachElementDo(sr => sr.UseManualAssembly = false); - failureMechanism.NotifyObservers(); - - // Then - Assert.IsEmpty(manualAssemblyWarningProvider.GetError(failureMechanismAssemblyControl)); - } - } - - [Test] public void GivenFailureMechanismResultsViewWithManualAssembly_WhenShown_ThenManualAssemblyUsed() { // Given