Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/TreeNodeInfos/DesignWaterLevelContextTreeNodeInfoTest.cs =================================================================== diff -u -r6fc38f8582161da49669e8785efa98ad32cc02ae -r850aa1fd8e0b58f0753a963f47c3078285b73a8a --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/TreeNodeInfos/DesignWaterLevelContextTreeNodeInfoTest.cs (.../DesignWaterLevelContextTreeNodeInfoTest.cs) (revision 6fc38f8582161da49669e8785efa98ad32cc02ae) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/TreeNodeInfos/DesignWaterLevelContextTreeNodeInfoTest.cs (.../DesignWaterLevelContextTreeNodeInfoTest.cs) (revision 850aa1fd8e0b58f0753a963f47c3078285b73a8a) @@ -301,7 +301,7 @@ } [Test] - public void ForeColor_ContextHasNoCalculations_ReturnControlColor() + public void ForeColor_ContextHasHydraulicBoundaryDatabase_ReturnControlColor() { // Setup var assessmentSectionMock = mockRepository.Stub(); @@ -323,34 +323,6 @@ mockRepository.VerifyAll(); } - [Test] - public void ForeColor_ContextHasCalculations_ReturnControlColor() - { - // Setup - var assessmentSectionMock = mockRepository.Stub(); - assessmentSectionMock.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase(); - var location = new HydraulicBoundaryLocation(123, "aName", 1.1, 2.2) - { - DesignWaterLevel = 1.0 - }; - assessmentSectionMock.HydraulicBoundaryDatabase.Locations.Add(location); - mockRepository.ReplayAll(); - - var designWaterLevelContext = new DesignWaterLevelContext(assessmentSectionMock); - - using (var plugin = new RingtoetsPlugin()) - { - TreeNodeInfo info = GetInfo(plugin); - - // Call - Color color = info.ForeColor(designWaterLevelContext); - - // Assert - Assert.AreEqual(Color.FromKnownColor(KnownColor.ControlText), color); - } - mockRepository.VerifyAll(); - } - private static TreeNodeInfo GetInfo(RingtoetsPlugin plugin) { return plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(DesignWaterLevelContext)); Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/TreeNodeInfos/WaveHeightContextTreeNodeInfoTest.cs =================================================================== diff -u -r6fc38f8582161da49669e8785efa98ad32cc02ae -r850aa1fd8e0b58f0753a963f47c3078285b73a8a --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/TreeNodeInfos/WaveHeightContextTreeNodeInfoTest.cs (.../WaveHeightContextTreeNodeInfoTest.cs) (revision 6fc38f8582161da49669e8785efa98ad32cc02ae) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/TreeNodeInfos/WaveHeightContextTreeNodeInfoTest.cs (.../WaveHeightContextTreeNodeInfoTest.cs) (revision 850aa1fd8e0b58f0753a963f47c3078285b73a8a) @@ -247,7 +247,7 @@ } [Test] - public void ForeColor_ContextHasNoCalculations_ReturnControlColor() + public void ForeColor_ContextHasHydraulicBoundaryDatabase_ReturnControlColor() { // Setup var assessmentSectionMock = mockRepository.Stub(); @@ -270,34 +270,6 @@ } [Test] - public void ForeColor_ContextHasCalculations_ReturnControlColor() - { - // Setup - var assessmentSectionMock = mockRepository.Stub(); - assessmentSectionMock.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase(); - var location = new HydraulicBoundaryLocation(123, "aName", 1.1, 2.2) - { - WaveHeight = 1.0 - }; - assessmentSectionMock.HydraulicBoundaryDatabase.Locations.Add(location); - mockRepository.ReplayAll(); - - var waveHeightContext = new WaveHeightContext(assessmentSectionMock); - - using (var plugin = new RingtoetsPlugin()) - { - TreeNodeInfo info = GetInfo(plugin); - - // Call - Color color = info.ForeColor(waveHeightContext); - - // Assert - Assert.AreEqual(Color.FromKnownColor(KnownColor.ControlText), color); - } - mockRepository.VerifyAll(); - } - - [Test] public void GivenHydraulicBoundaryDatabaseWithNonExistingFilePath_WhenCalculatingWaveHeightFromContextMenu_ThenLogMessagesAddedPreviousOutputNotAffected() { // Given