Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/DesignWaterLevelLocationsContextTreeNodeInfoTest.cs =================================================================== diff -u -re98196d2643883a44bc503eae24b005474983074 -r67823f50a5a4e994c13dac0269fb61e8783efead --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/DesignWaterLevelLocationsContextTreeNodeInfoTest.cs (.../DesignWaterLevelLocationsContextTreeNodeInfoTest.cs) (revision e98196d2643883a44bc503eae24b005474983074) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/DesignWaterLevelLocationsContextTreeNodeInfoTest.cs (.../DesignWaterLevelLocationsContextTreeNodeInfoTest.cs) (revision 67823f50a5a4e994c13dac0269fb61e8783efead) @@ -20,7 +20,6 @@ // All rights reserved. using System; -using System.Drawing; using System.IO; using System.Linq; using System.Threading; @@ -69,7 +68,7 @@ // Assert Assert.IsNotNull(info.Text); - Assert.IsNotNull(info.ForeColor); + Assert.IsNull(info.ForeColor); Assert.IsNotNull(info.Image); Assert.IsNotNull(info.ContextMenuStrip); Assert.IsNull(info.EnsureVisibleOnCreate); @@ -375,51 +374,6 @@ mockRepository.VerifyAll(); } - [Test] - public void ForeColor_ContextHasNoHydraulicBoundaryDatabase_ReturnDisabledColor() - { - // Setup - var assessmentSectionMock = mockRepository.Stub(); - mockRepository.ReplayAll(); - - var context = new DesignWaterLevelLocationsContext(assessmentSectionMock); - - using (var plugin = new RingtoetsPlugin()) - { - TreeNodeInfo info = GetInfo(plugin); - - // Call - Color color = info.ForeColor(context); - - // Assert - Assert.AreEqual(Color.FromKnownColor(KnownColor.GrayText), color); - } - mockRepository.VerifyAll(); - } - - [Test] - public void ForeColor_ContextHasHydraulicBoundaryDatabase_ReturnControlColor() - { - // Setup - var assessmentSectionMock = mockRepository.Stub(); - assessmentSectionMock.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase(); - mockRepository.ReplayAll(); - - var context = new DesignWaterLevelLocationsContext(assessmentSectionMock); - - using (var plugin = new RingtoetsPlugin()) - { - TreeNodeInfo info = GetInfo(plugin); - - // Call - Color color = info.ForeColor(context); - - // Assert - Assert.AreEqual(Color.FromKnownColor(KnownColor.ControlText), color); - } - mockRepository.VerifyAll(); - } - private static TreeNodeInfo GetInfo(RingtoetsPlugin plugin) { return plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(DesignWaterLevelLocationsContext));