Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/UpdateInfos/DikeProfilesContextUpdateInfoTest.cs =================================================================== diff -u -r6ea2281c03c04dfbfaa7742d533fc1f88b96f59c -r9dc9f73ff0fd357e8f6d8ab7a11a8f3488194672 --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/UpdateInfos/DikeProfilesContextUpdateInfoTest.cs (.../DikeProfilesContextUpdateInfoTest.cs) (revision 6ea2281c03c04dfbfaa7742d533fc1f88b96f59c) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/UpdateInfos/DikeProfilesContextUpdateInfoTest.cs (.../DikeProfilesContextUpdateInfoTest.cs) (revision 9dc9f73ff0fd357e8f6d8ab7a11a8f3488194672) @@ -94,7 +94,7 @@ } [Test] - public void IsEnabled_ReferenceLineSet_ReturnTrue() + public void IsEnabled_DikeProfileCollectionSourcePathSet_ReturnTrue() { // Setup var mocks = new MockRepository(); @@ -104,8 +104,10 @@ assessmentSection.ReferenceLine = new ReferenceLine(); var failureMechanism = new GrassCoverErosionInwardsFailureMechanism(); + var dikeProfiles = new DikeProfileCollection(); + dikeProfiles.AddRange(Enumerable.Empty(), "some/path"); - var context = new DikeProfilesContext(failureMechanism.DikeProfiles, failureMechanism, assessmentSection); + var context = new DikeProfilesContext(dikeProfiles, failureMechanism, assessmentSection); using (var plugin = new GrassCoverErosionInwardsPlugin()) { @@ -121,16 +123,17 @@ } [Test] - public void IsEnabled_ReferenceLineNotSet_ReturnFalse() + public void IsEnabled_DikeProfileCollectionSourcePathNull_ReturnFalse() { // Setup var mocks = new MockRepository(); var assessmentSection = mocks.Stub(); mocks.ReplayAll(); var failureMechanism = new GrassCoverErosionInwardsFailureMechanism(); + var dikeProfiles = new DikeProfileCollection(); - var context = new DikeProfilesContext(failureMechanism.DikeProfiles, failureMechanism, assessmentSection); + var context = new DikeProfilesContext(dikeProfiles, failureMechanism, assessmentSection); using (var plugin = new GrassCoverErosionInwardsPlugin()) {