Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -rd1c60b79a5add63479f44fdbdbbd16d3593949dd -r062281754a35164e1095479c9f1ccb8ee821f939 --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationContextTreeNodeInfoTest.cs (.../GrassCoverErosionInwardsCalculationContextTreeNodeInfoTest.cs) (revision d1c60b79a5add63479f44fdbdbbd16d3593949dd) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationContextTreeNodeInfoTest.cs (.../GrassCoverErosionInwardsCalculationContextTreeNodeInfoTest.cs) (revision 062281754a35164e1095479c9f1ccb8ee821f939) @@ -76,7 +76,7 @@ } [Test] - public void Image_Always_ReturnsPlaceHolderIcon() + public void Image_Always_ReturnsCalculationIcon() { // Call var image = info.Image(null); @@ -87,7 +87,7 @@ [Test] public void ChildNodeObjects_WithOutputData_ReturnOutputChildNode() - { + { var assessmentSectionMock = mocks.StrictMock(); mocks.ReplayAll(); @@ -119,7 +119,7 @@ // Setup var gui = mocks.StrictMock(); var treeViewControlMock = mocks.StrictMock(); - + var menuBuilderMock = mocks.Stub(); menuBuilderMock.Expect(mb => mb.AddCustomItem(null)).IgnoreArguments().Return(menuBuilderMock); menuBuilderMock.Expect(mb => mb.AddCustomItem(null)).IgnoreArguments().Return(menuBuilderMock); @@ -140,7 +140,7 @@ var assessmentSectionMock = mocks.StrictMock(); assessmentSectionMock.Expect(asm => asm.HydraulicBoundaryDatabase).Return(null); var calculation = new GrassCoverErosionInwardsCalculation(new GeneralGrassCoverErosionInwardsInput()); - + var nodeData = new GrassCoverErosionInwardsCalculationContext(calculation, failureMechanism, assessmentSectionMock); gui.Expect(cmp => cmp.Get(nodeData, treeViewControlMock)).Return(menuBuilderMock); @@ -194,7 +194,10 @@ var treeViewControlMock = mocks.StrictMock(); var failureMechanism = new GrassCoverErosionInwardsFailureMechanism(); - failureMechanism.AddSection(new FailureMechanismSection("test", new[] { new Point2D(0, 0) })); + failureMechanism.AddSection(new FailureMechanismSection("test", new[] + { + new Point2D(0, 0) + })); var assessmentSectionMock = mocks.StrictMock(); assessmentSectionMock.Expect(asm => asm.HydraulicBoundaryDatabase).Return(new HydraulicBoundaryDatabase()); @@ -288,7 +291,7 @@ var gui = mocks.DynamicMock(); var observer = mocks.StrictMock(); var treeViewControlMock = mocks.StrictMock(); - + var failureMechanism = new GrassCoverErosionInwardsFailureMechanism(); var assessmentSectionMock = mocks.StrictMock(); assessmentSectionMock.Expect(asm => asm.HydraulicBoundaryDatabase).Return(null); @@ -377,7 +380,6 @@ gui.Expect(g => g.Get(calculationContext, treeViewControlMock)).Return(new CustomItemsOnlyContextMenuBuilder()); gui.Expect(g => g.MainWindow).Return(mainWindow); - mocks.ReplayAll(); plugin.Gui = gui; @@ -428,11 +430,11 @@ mocks.ReplayAll(); var calculationContext = new GrassCoverErosionInwardsCalculationContext(elementToBeRemoved, - failureMechanism, - assessmentSectionMock); + failureMechanism, + assessmentSectionMock); var groupContext = new GrassCoverErosionInwardsCalculationGroupContext(group, - failureMechanism, - assessmentSectionMock); + failureMechanism, + assessmentSectionMock); // Precondition Assert.IsTrue(info.CanRemove(calculationContext, groupContext));