Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/TreeNodeInfos/ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r2b26e7134b3918e67f8b23a6db3f90fad0d4f12e -r8c1fffbb415e7c2470be6d3fa2971103777d418e --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/TreeNodeInfos/ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision 2b26e7134b3918e67f8b23a6db3f90fad0d4f12e) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/TreeNodeInfos/ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision 8c1fffbb415e7c2470be6d3fa2971103777d418e) @@ -128,12 +128,12 @@ // Setup var group = new CalculationGroup(); var failureMechanism = new ClosingStructuresFailureMechanism(); - var assessmentSectionMock = mocks.Stub(); + var assessmentSectionStub = mocks.Stub(); mocks.ReplayAll(); var groupContext = new ClosingStructuresCalculationGroupContext(group, failureMechanism, - assessmentSectionMock); + assessmentSectionStub); // Call var children = info.ChildNodeObjects(groupContext); @@ -146,7 +146,7 @@ public void ChildNodeObjects_GroupWithMixedContents_ReturnChildren() { // Setup - var assessmentSectionMock = mocks.Stub(); + var assessmentSectionStub = mocks.Stub(); var calculationItemMock = mocks.Stub(); mocks.ReplayAll(); @@ -161,7 +161,7 @@ var groupContext = new ClosingStructuresCalculationGroupContext(group, failureMechanism, - assessmentSectionMock); + assessmentSectionStub); // Call var children = info.ChildNodeObjects(groupContext).ToArray(); @@ -171,11 +171,11 @@ var calculationGroupContext = (ClosingStructuresCalculationGroupContext) children[0]; Assert.AreSame(childGroup, calculationGroupContext.WrappedData); Assert.AreSame(failureMechanism, calculationGroupContext.FailureMechanism); - Assert.AreSame(assessmentSectionMock, calculationGroupContext.AssessmentSection); + Assert.AreSame(assessmentSectionStub, calculationGroupContext.AssessmentSection); Assert.AreSame(calculationItemMock, children[1]); var calculationContext = (ClosingStructuresCalculationContext) children[2]; Assert.AreSame(childCalculation, calculationContext.WrappedData); - Assert.AreSame(assessmentSectionMock, calculationContext.AssessmentSection); + Assert.AreSame(assessmentSectionStub, calculationContext.AssessmentSection); } [Test] @@ -184,10 +184,10 @@ // Setup var group = new CalculationGroup(); var failureMechanism = new ClosingStructuresFailureMechanism(); - var assessmentSectionMock = mocks.Stub(); + var assessmentSectionStub = mocks.Stub(); var groupContext = new ClosingStructuresCalculationGroupContext(group, failureMechanism, - assessmentSectionMock); + assessmentSectionStub); var menuBuilderMock = mocks.StrictMock(); @@ -228,10 +228,10 @@ // Setup var group = new CalculationGroup(); var failureMechanism = new ClosingStructuresFailureMechanism(); - var assessmentSectionMock = mocks.Stub(); + var assessmentSectionStub = mocks.Stub(); var groupContext = new ClosingStructuresCalculationGroupContext(group, failureMechanism, - assessmentSectionMock); + assessmentSectionStub); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); @@ -323,13 +323,13 @@ var group = new CalculationGroup(); var parentGroup = new CalculationGroup(); var failureMechanism = new ClosingStructuresFailureMechanism(); - var assessmentSectionMock = mocks.Stub(); + var assessmentSectionStub = mocks.Stub(); var groupContext = new ClosingStructuresCalculationGroupContext(group, failureMechanism, - assessmentSectionMock); + assessmentSectionStub); var parentGroupContext = new ClosingStructuresCalculationGroupContext(parentGroup, failureMechanism, - assessmentSectionMock); + assessmentSectionStub); var menuBuilderMock = mocks.StrictMock(); menuBuilderMock.Expect(mb => mb.AddCustomItem(null)).IgnoreArguments().Return(menuBuilderMock); @@ -368,13 +368,13 @@ var group = new CalculationGroup(); var parentGroup = new CalculationGroup(); var failureMechanism = new ClosingStructuresFailureMechanism(); - var assessmentSectionMock = mocks.Stub(); + var assessmentSectionStub = mocks.Stub(); var groupContext = new ClosingStructuresCalculationGroupContext(group, failureMechanism, - assessmentSectionMock); + assessmentSectionStub); var parentGroupContext = new ClosingStructuresCalculationGroupContext(parentGroup, failureMechanism, - assessmentSectionMock); + assessmentSectionStub); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); using (var treeViewControl = new TreeViewControl()) @@ -421,7 +421,7 @@ { // Setup var failureMechanism = new ClosingStructuresFailureMechanism(); - var assessmentSectionMock = mocks.Stub(); + var assessmentSectionStub = mocks.Stub(); var group = new CalculationGroup { @@ -433,7 +433,7 @@ var nodeData = new ClosingStructuresCalculationGroupContext(group, failureMechanism, - assessmentSectionMock); + assessmentSectionStub); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); @@ -482,12 +482,12 @@ })); failureMechanism.CalculationsGroup.Children.Add(new StructuresCalculation()); - var assessmentSectionMock = mocks.Stub(); - assessmentSectionMock.HydraulicBoundaryDatabase = null; + var assessmentSectionStub = mocks.Stub(); + assessmentSectionStub.HydraulicBoundaryDatabase = null; var nodeData = new ClosingStructuresCalculationGroupContext(group, failureMechanism, - assessmentSectionMock); + assessmentSectionStub); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); @@ -536,12 +536,12 @@ })); failureMechanism.CalculationsGroup.Children.Add(new StructuresCalculation()); - var assessmentSectionMock = mocks.Stub(); - assessmentSectionMock.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase(); + var assessmentSectionStub = mocks.Stub(); + assessmentSectionStub.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase(); var nodeData = new ClosingStructuresCalculationGroupContext(group, failureMechanism, - assessmentSectionMock); + assessmentSectionStub); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); @@ -794,10 +794,10 @@ var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); var group = new CalculationGroup(); var failureMechanism = new ClosingStructuresFailureMechanism(); - var assessmentSectionMock = mocks.Stub(); + var assessmentSectionStub = mocks.Stub(); var nodeData = new ClosingStructuresCalculationGroupContext(group, failureMechanism, - assessmentSectionMock); + assessmentSectionStub); var calculationGroup = new CalculationGroup { Name = "Nieuwe map" @@ -841,10 +841,10 @@ var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); var group = new CalculationGroup(); var failureMechanism = new ClosingStructuresFailureMechanism(); - var assessmentSectionMock = mocks.Stub(); + var assessmentSectionStub = mocks.Stub(); var nodeData = new ClosingStructuresCalculationGroupContext(group, failureMechanism, - assessmentSectionMock); + assessmentSectionStub); var calculation = new StructuresCalculation { Name = "Nieuwe berekening" @@ -1069,15 +1069,15 @@ // Setup var observerMock = mocks.StrictMock(); var failureMechanism = new ClosingStructuresFailureMechanism(); - var assessmentSectionMock = mocks.Stub(); + var assessmentSectionStub = mocks.Stub(); var group = new CalculationGroup(); var parentGroup = new CalculationGroup(); var nodeData = new ClosingStructuresCalculationGroupContext(group, failureMechanism, - assessmentSectionMock); + assessmentSectionStub); var parentNodeData = new ClosingStructuresCalculationGroupContext(parentGroup, failureMechanism, - assessmentSectionMock); + assessmentSectionStub); observerMock.Expect(o => o.UpdateObserver()); @@ -1138,16 +1138,16 @@ { // Setup var observerMock = mocks.StrictMock(); - var assessmentSectionMock = mocks.Stub(); + var assessmentSectionStub = mocks.Stub(); var failureMechanism = new ClosingStructuresFailureMechanism(); var group = new CalculationGroup(); var parentGroup = new CalculationGroup(); var nodeData = new ClosingStructuresCalculationGroupContext(group, failureMechanism, - assessmentSectionMock); + assessmentSectionStub); var parentNodeData = new ClosingStructuresCalculationGroupContext(parentGroup, failureMechanism, - assessmentSectionMock); + assessmentSectionStub); var calculation = new StructuresCalculation(); observerMock.Expect(o => o.UpdateObserver());