Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -re87c9b5011f0f941594f70f2384877351797d445 -r23a37b025a5d0358c1f30fb31de41a2c284519a5 --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs) (revision e87c9b5011f0f941594f70f2384877351797d445) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs) (revision 23a37b025a5d0358c1f30fb31de41a2c284519a5) @@ -379,7 +379,7 @@ assessmentSectionMock); var calculationItem = mocks.Stub(); - calculationItem.Name = "Nieuwe map"; + calculationItem.Stub(ci => ci.Name).Return("Nieuwe map"); var observer = mocks.StrictMock(); observer.Expect(o => o.UpdateObserver()); @@ -428,7 +428,7 @@ assessmentSectionMock); var calculationItem = mocks.Stub(); - calculationItem.Name = "Nieuwe berekening"; + calculationItem.Stub(ci => ci.Name).Return("Nieuwe berekening"); var observer = mocks.StrictMock(); observer.Expect(o => o.UpdateObserver()); @@ -876,7 +876,7 @@ CreateCalculationAndContext(draggedItemType, out draggedItem, out draggedItemContext, pipingFailureMechanismMock, assessmentSection, name); var existingItemStub = mocks.Stub(); - existingItemStub.Name = ""; + existingItemStub.Stub(ci => ci.Name).Return(""); CalculationGroup originalOwnerGroup; GrassCoverErosionInwardsCalculationGroupContext originalOwnerGroupContext; @@ -934,7 +934,7 @@ CreateCalculationGroupAndContext(out newOwnerGroup, out newOwnerGroupContext, pipingFailureMechanismMock, assessmentSection); var sameNamedItem = mocks.Stub(); - sameNamedItem.Name = draggedItem.Name; + sameNamedItem.Stub(sni => sni.Name).Return(draggedItem.Name); var originalOwnerObserver = mocks.StrictMock(); originalOwnerObserver.Expect(o => o.UpdateObserver());