Index: Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Plugin/DuneErosionPlugin.cs =================================================================== diff -u -re32dd7e587511d736481cb4d735e3a0f79aca8a5 -r84b83644d2c80cbc8ffadbe0c01845efaef70689 --- Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Plugin/DuneErosionPlugin.cs (.../DuneErosionPlugin.cs) (revision e32dd7e587511d736481cb4d735e3a0f79aca8a5) +++ Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Plugin/DuneErosionPlugin.cs (.../DuneErosionPlugin.cs) (revision 84b83644d2c80cbc8ffadbe0c01845efaef70689) @@ -36,6 +36,7 @@ using Ringtoets.Common.Forms.PresentationObjects; using Ringtoets.Common.Forms.TreeNodeInfos; using Ringtoets.Common.Forms.TypeConverters; +using Ringtoets.Common.Forms.UpdateInfos; using Ringtoets.Common.Plugin; using Ringtoets.Common.Service; using Ringtoets.DuneErosion.Data; @@ -45,6 +46,7 @@ using Ringtoets.DuneErosion.Forms.PropertyClasses; using Ringtoets.DuneErosion.Forms.Views; using Ringtoets.DuneErosion.IO; +using Ringtoets.DuneErosion.Plugin.FileImporters; using Ringtoets.DuneErosion.Plugin.Properties; using Ringtoets.DuneErosion.Service; using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources; @@ -184,6 +186,13 @@ }; } + public override IEnumerable GetUpdateInfos() + { + yield return RingtoetsUpdateInfoFactory.CreateFailureMechanismSectionsUpdateInfo< + DuneErosionFailureMechanismSectionsContext, DuneErosionFailureMechanism, DuneErosionFailureMechanismSectionResult>( + new DuneErosionFailureMechanismSectionResultUpdateStrategy()); + } + public override void Activate() { base.Activate(); @@ -243,7 +252,7 @@ { return new object[] { - new DuneErosionFailureMechanismSectionsContext(failureMechanism, assessmentSection), + new DuneErosionFailureMechanismSectionsContext(failureMechanism, assessmentSection), failureMechanism.InputComments }; } Index: Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Plugin/FileImporters/DuneErosionFailureMechanismSectionResultUpdateStrategy.cs =================================================================== diff -u --- Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Plugin/FileImporters/DuneErosionFailureMechanismSectionResultUpdateStrategy.cs (revision 0) +++ Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Plugin/FileImporters/DuneErosionFailureMechanismSectionResultUpdateStrategy.cs (revision 84b83644d2c80cbc8ffadbe0c01845efaef70689) @@ -0,0 +1,58 @@ +// Copyright (C) Stichting Deltares 2017. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System; +using Ringtoets.Common.IO.FileImporters; +using Ringtoets.DuneErosion.Data; + +namespace Ringtoets.DuneErosion.Plugin.FileImporters +{ + /// + /// An update strategy that can be used to update a instance with data + /// from an old instance. + /// + public class DuneErosionFailureMechanismSectionResultUpdateStrategy + : IFailureMechanismSectionResultUpdateStrategy + { + public void UpdateSectionResult(DuneErosionFailureMechanismSectionResult origin, DuneErosionFailureMechanismSectionResult target) + { + if (origin == null) + { + throw new ArgumentNullException(nameof(origin)); + } + + if (target == null) + { + throw new ArgumentNullException(nameof(target)); + } + + target.SimpleAssessmentResult = origin.SimpleAssessmentResult; + target.DetailedAssessmentResultForFactorizedSignalingNorm = origin.DetailedAssessmentResultForFactorizedSignalingNorm; + target.DetailedAssessmentResultForSignalingNorm = origin.DetailedAssessmentResultForSignalingNorm; + target.DetailedAssessmentResultForMechanismSpecificLowerLimitNorm = origin.DetailedAssessmentResultForMechanismSpecificLowerLimitNorm; + target.DetailedAssessmentResultForLowerLimitNorm = origin.DetailedAssessmentResultForLowerLimitNorm; + target.DetailedAssessmentResultForFactorizedLowerLimitNorm = origin.DetailedAssessmentResultForFactorizedLowerLimitNorm; + target.TailorMadeAssessmentResult = origin.TailorMadeAssessmentResult; + target.UseManualAssemblyCategoryGroup = origin.UseManualAssemblyCategoryGroup; + target.ManualAssemblyCategoryGroup = origin.ManualAssemblyCategoryGroup; + } + } +} \ No newline at end of file Index: Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Plugin/Ringtoets.DuneErosion.Plugin.csproj =================================================================== diff -u -rbab76d764d096ef9eaf56691ff4f6520985b99bf -r84b83644d2c80cbc8ffadbe0c01845efaef70689 --- Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Plugin/Ringtoets.DuneErosion.Plugin.csproj (.../Ringtoets.DuneErosion.Plugin.csproj) (revision bab76d764d096ef9eaf56691ff4f6520985b99bf) +++ Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Plugin/Ringtoets.DuneErosion.Plugin.csproj (.../Ringtoets.DuneErosion.Plugin.csproj) (revision 84b83644d2c80cbc8ffadbe0c01845efaef70689) @@ -14,6 +14,7 @@ + @@ -58,6 +59,11 @@ Core.Components.Gis.Forms False + + {420ED9C3-0C33-47EA-B893-121A9C0DB4F1} + Ringtoets.AssemblyTool.Data + False + {d4200f43-3f72-4f42-af0a-8ced416a38ec} Ringtoets.Common.Data @@ -68,11 +74,21 @@ Ringtoets.Common.Forms False + + {52BA7627-CBAB-4209-BE77-3B5F31378277} + Ringtoets.Common.IO + False + {8513b8d6-79c8-4173-b663-59c91ac65e5f} Ringtoets.Common.Plugin False + + {78AA56F5-431D-465C-AC50-3173D7E90AC1} + Ringtoets.Common.Primitives + False + {D951D6DA-FE83-4920-9FDB-63BF96480B54} Ringtoets.Common.Service Index: Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/DuneErosionPluginTest.cs =================================================================== diff -u -rda9b4d448357657501746aa975ccbba8fef7c1aa -r84b83644d2c80cbc8ffadbe0c01845efaef70689 --- Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/DuneErosionPluginTest.cs (.../DuneErosionPluginTest.cs) (revision da9b4d448357657501746aa975ccbba8fef7c1aa) +++ Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/DuneErosionPluginTest.cs (.../DuneErosionPluginTest.cs) (revision 84b83644d2c80cbc8ffadbe0c01845efaef70689) @@ -140,7 +140,7 @@ } [Test] - public void GetExportInfos_ReturnsSupportedExportInfo() + public void GetExportInfos_ReturnsSupportedExportInfos() { // Setup using (var plugin = new DuneErosionPlugin()) @@ -154,5 +154,20 @@ Assert.IsTrue(exportInfos.Any(ei => ei.DataType == typeof(DuneLocationCalculationsGroupContext))); } } + + [Test] + public void GetUpdateInfos_ReturnsSupportedUpdateInfos() + { + // Setup + using (var plugin = new DuneErosionPlugin()) + { + // Call + UpdateInfo[] updateInfos = plugin.GetUpdateInfos().ToArray(); + + // Assert + Assert.AreEqual(1, updateInfos.Length); + Assert.IsTrue(updateInfos.Any(ei => ei.DataType == typeof(DuneLocationCalculationsGroupContext))); + } + } } } \ No newline at end of file Index: Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/FileImporters/DuneErosionFailureMechanismSectionResultUpdateStrategyTest.cs =================================================================== diff -u --- Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/FileImporters/DuneErosionFailureMechanismSectionResultUpdateStrategyTest.cs (revision 0) +++ Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/FileImporters/DuneErosionFailureMechanismSectionResultUpdateStrategyTest.cs (revision 84b83644d2c80cbc8ffadbe0c01845efaef70689) @@ -0,0 +1,111 @@ +// Copyright (C) Stichting Deltares 2017. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System; +using NUnit.Framework; +using Ringtoets.AssemblyTool.Data; +using Ringtoets.Common.Data.TestUtil; +using Ringtoets.Common.IO.FileImporters; +using Ringtoets.Common.Primitives; +using Ringtoets.DuneErosion.Data; +using Ringtoets.DuneErosion.Plugin.FileImporters; + +namespace Ringtoets.DuneErosion.Plugin.Test.FileImporters +{ + [TestFixture] + public class DuneErosionFailureMechanismSectionResultUpdateStrategyTest + { + [Test] + public void Constructor_ExpectedValues() + { + // Call + var strategy = new DuneErosionFailureMechanismSectionResultUpdateStrategy(); + + // Assert + Assert.IsInstanceOf>(strategy); + } + + [Test] + public void UpdateSectionResult_OriginNull_ThrowsArgumentNullException() + { + // Setup + var strategy = new DuneErosionFailureMechanismSectionResultUpdateStrategy(); + + // Call + TestDelegate test = () => strategy.UpdateSectionResult( + null, new DuneErosionFailureMechanismSectionResult(FailureMechanismSectionTestFactory.CreateFailureMechanismSection())); + + // Assert + string paramName = Assert.Throws(test).ParamName; + Assert.AreEqual("origin", paramName); + } + + [Test] + public void UpdateSectionResult_TargetNull_ThrowsArgumentNullException() + { + // Setup + var strategy = new DuneErosionFailureMechanismSectionResultUpdateStrategy(); + + // Call + TestDelegate test = () => strategy.UpdateSectionResult( + new DuneErosionFailureMechanismSectionResult(FailureMechanismSectionTestFactory.CreateFailureMechanismSection()), null); + + // Assert + string paramName = Assert.Throws(test).ParamName; + Assert.AreEqual("target", paramName); + } + + [Test] + public void UpdateSectionResult_WithData_UpdatesTargetSectionResult() + { + // Setup + var strategy = new DuneErosionFailureMechanismSectionResultUpdateStrategy(); + var originResult = new DuneErosionFailureMechanismSectionResult(FailureMechanismSectionTestFactory.CreateFailureMechanismSection()) + { + SimpleAssessmentResult = SimpleAssessmentValidityOnlyResultType.NotApplicable, + DetailedAssessmentResultForFactorizedSignalingNorm = DetailedAssessmentResultType.Sufficient, + DetailedAssessmentResultForSignalingNorm = DetailedAssessmentResultType.Sufficient, + DetailedAssessmentResultForLowerLimitNorm = DetailedAssessmentResultType.Sufficient, + DetailedAssessmentResultForMechanismSpecificLowerLimitNorm = DetailedAssessmentResultType.Sufficient, + DetailedAssessmentResultForFactorizedLowerLimitNorm = DetailedAssessmentResultType.Sufficient, + TailorMadeAssessmentResult = TailorMadeAssessmentCategoryGroupResultType.IIIv, + UseManualAssemblyCategoryGroup = true, + ManualAssemblyCategoryGroup = FailureMechanismSectionAssemblyCategoryGroup.VIv + }; + var targetResult = new DuneErosionFailureMechanismSectionResult(FailureMechanismSectionTestFactory.CreateFailureMechanismSection()); + + // Call + strategy.UpdateSectionResult(originResult, targetResult); + + // Assert + Assert.AreEqual(originResult.SimpleAssessmentResult, targetResult.SimpleAssessmentResult); + Assert.AreEqual(originResult.DetailedAssessmentResultForFactorizedSignalingNorm, targetResult.DetailedAssessmentResultForFactorizedSignalingNorm); + Assert.AreEqual(originResult.DetailedAssessmentResultForSignalingNorm, targetResult.DetailedAssessmentResultForSignalingNorm); + Assert.AreEqual(originResult.DetailedAssessmentResultForLowerLimitNorm, targetResult.DetailedAssessmentResultForLowerLimitNorm); + Assert.AreEqual(originResult.DetailedAssessmentResultForMechanismSpecificLowerLimitNorm, targetResult.DetailedAssessmentResultForMechanismSpecificLowerLimitNorm); + Assert.AreEqual(originResult.DetailedAssessmentResultForFactorizedLowerLimitNorm, targetResult.DetailedAssessmentResultForFactorizedLowerLimitNorm); + Assert.AreEqual(originResult.TailorMadeAssessmentResult, targetResult.TailorMadeAssessmentResult); + Assert.AreEqual(originResult.UseManualAssemblyCategoryGroup, targetResult.UseManualAssemblyCategoryGroup); + Assert.AreEqual(originResult.ManualAssemblyCategoryGroup, targetResult.ManualAssemblyCategoryGroup); + Assert.AreNotSame(originResult.Section, targetResult.Section); + } + } +} \ No newline at end of file Index: Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/Ringtoets.DuneErosion.Plugin.Test.csproj =================================================================== diff -u -re63b47a8282dfc596cc2dbe89bd8ffb501b0b326 -r84b83644d2c80cbc8ffadbe0c01845efaef70689 --- Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/Ringtoets.DuneErosion.Plugin.Test.csproj (.../Ringtoets.DuneErosion.Plugin.Test.csproj) (revision e63b47a8282dfc596cc2dbe89bd8ffb501b0b326) +++ Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/Ringtoets.DuneErosion.Plugin.Test.csproj (.../Ringtoets.DuneErosion.Plugin.Test.csproj) (revision 84b83644d2c80cbc8ffadbe0c01845efaef70689) @@ -24,6 +24,7 @@ + @@ -33,6 +34,7 @@ + @@ -96,6 +98,14 @@ {4d840673-3812-4338-a352-84854e32b8a0} Ringtoets.Common.Forms + + {52BA7627-CBAB-4209-BE77-3B5F31378277} + Ringtoets.Common.IO + + + {78AA56F5-431D-465C-AC50-3173D7E90AC1} + Ringtoets.Common.Primitives + {4843D6E5-066F-4795-94F5-1D53932DD03C} Ringtoets.Common.Data.TestUtil Index: Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/UpdateInfos/DuneErosionFailureMechanismSectionsContextUpdateInfoTest.cs =================================================================== diff -u --- Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/UpdateInfos/DuneErosionFailureMechanismSectionsContextUpdateInfoTest.cs (revision 0) +++ Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/UpdateInfos/DuneErosionFailureMechanismSectionsContextUpdateInfoTest.cs (revision 84b83644d2c80cbc8ffadbe0c01845efaef70689) @@ -0,0 +1,216 @@ +// Copyright (C) Stichting Deltares 2017. All rights reserved. +// +// This file is part of Ringtoets. +// +// Ringtoets is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . +// +// All names, logos, and references to "Deltares" are registered trademarks of +// Stichting Deltares and remain full property of Stichting Deltares at all times. +// All rights reserved. + +using System.Drawing; +using System.Linq; +using Core.Common.Base.IO; +using Core.Common.Gui.Plugin; +using Core.Common.TestUtil; +using Core.Common.Util; +using NUnit.Framework; +using Rhino.Mocks; +using Ringtoets.Common.Data.AssessmentSection; +using Ringtoets.Common.Data.FailureMechanism; +using Ringtoets.Common.IO.FileImporters; +using Ringtoets.DuneErosion.Data; +using Ringtoets.DuneErosion.Forms.PresentationObjects; +using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources; + +namespace Ringtoets.DuneErosion.Plugin.Test.UpdateInfos +{ + [TestFixture] + public class DuneErosionFailureMechanismSectionsContextUpdateInfoTest + { + [Test] + public void Name_Always_ReturnExpectedName() + { + // Setup + using (var plugin = new DuneErosionPlugin()) + { + UpdateInfo importInfo = GetUpdateInfo(plugin); + + // Call + string name = importInfo.Name; + + // Assert + Assert.AreEqual("Vakindeling", name); + } + } + + [Test] + public void Category_Always_ReturnExpectedCategory() + { + // Setup + using (var plugin = new DuneErosionPlugin()) + { + UpdateInfo importInfo = GetUpdateInfo(plugin); + + // Call + string category = importInfo.Category; + + // Assert + Assert.AreEqual("Algemeen", category); + } + } + + [Test] + public void Image_Always_ReturnExpectedIcon() + { + // Setup + using (var plugin = new DuneErosionPlugin()) + { + UpdateInfo importInfo = GetUpdateInfo(plugin); + + // Call + Image image = importInfo.Image; + + // Assert + TestHelper.AssertImagesAreEqual(RingtoetsCommonFormsResources.SectionsIcon, image); + } + } + + [Test] + public void IsEnabled_FailureMechanismSectionsSourcePathSet_ReturnTrue() + { + // Setup + var mocks = new MockRepository(); + var assessmentSection = mocks.Stub(); + mocks.ReplayAll(); + + var failureMechanism = new DuneErosionFailureMechanism(); + + string sourcePath = TestHelper.GetScratchPadPath(); + failureMechanism.SetSections(Enumerable.Empty(), sourcePath); + var context = new DuneErosionFailureMechanismSectionsContext(failureMechanism, assessmentSection); + + using (var plugin = new DuneErosionPlugin()) + { + UpdateInfo importInfo = GetUpdateInfo(plugin); + + // Call + bool isEnabled = importInfo.IsEnabled(context); + + // Assert + Assert.IsTrue(isEnabled); + } + + mocks.VerifyAll(); + } + + [Test] + public void IsEnabled_FailureMechanismSectionsSourcePathNull_ReturnFalse() + { + // Setup + var mocks = new MockRepository(); + var assessmentSection = mocks.Stub(); + mocks.ReplayAll(); + + var failureMechanism = new DuneErosionFailureMechanism(); + var context = new DuneErosionFailureMechanismSectionsContext(failureMechanism, assessmentSection); + + using (var plugin = new DuneErosionPlugin()) + { + UpdateInfo importInfo = GetUpdateInfo(plugin); + + // Call + bool isEnabled = importInfo.IsEnabled(context); + + // Assert + Assert.IsFalse(isEnabled); + } + + mocks.VerifyAll(); + } + + [Test] + public void FileFilterGenerator_Always_ReturnExpectedFileFilter() + { + // Setup + using (var plugin = new DuneErosionPlugin()) + { + UpdateInfo importInfo = GetUpdateInfo(plugin); + + // Call + FileFilterGenerator fileFilterGenerator = importInfo.FileFilterGenerator; + + // Assert + Assert.AreEqual("Shapebestand (*.shp)|*.shp", fileFilterGenerator.Filter); + } + } + + [Test] + public void CreateFileImporter_WithValidData_ReturnsFileImporter() + { + // Setup + var mocks = new MockRepository(); + var assessmentSection = mocks.Stub(); + assessmentSection.ReferenceLine = new ReferenceLine(); + mocks.ReplayAll(); + + var failureMechanism = new DuneErosionFailureMechanism(); + var context = new DuneErosionFailureMechanismSectionsContext(failureMechanism, assessmentSection); + + using (var plugin = new DuneErosionPlugin()) + { + UpdateInfo updateInfo = GetUpdateInfo(plugin); + + // Call + IFileImporter importer = updateInfo.CreateFileImporter(context, string.Empty); + + // Assert + Assert.IsInstanceOf(importer); + mocks.VerifyAll(); + } + } + + [Test] + public void CurrentPath_FailureMechanismSectionsSourcePathSet_ReturnsExpectedPath() + { + // Setup + var mocks = new MockRepository(); + var assessmentSection = mocks.Stub(); + mocks.ReplayAll(); + + var failureMechanism = new DuneErosionFailureMechanism(); + + string sourcePath = TestHelper.GetScratchPadPath(); + failureMechanism.SetSections(Enumerable.Empty(), sourcePath); + var context = new DuneErosionFailureMechanismSectionsContext(failureMechanism, assessmentSection); + + using (var plugin = new DuneErosionPlugin()) + { + UpdateInfo updateInfo = GetUpdateInfo(plugin); + + // Call + string currentFilePath = updateInfo.CurrentPath(context); + + // Assert + Assert.AreEqual(sourcePath, currentFilePath); + mocks.VerifyAll(); + } + } + + private static UpdateInfo GetUpdateInfo(DuneErosionPlugin plugin) + { + return plugin.GetUpdateInfos().First(ii => ii.DataType == typeof(DuneErosionFailureMechanismSectionsContext)); + } + } +} \ No newline at end of file Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/StabilityStoneCoverPluginTest.cs =================================================================== diff -u -rd7ee65107ab167be11bedb03745684bb0960dc98 -r84b83644d2c80cbc8ffadbe0c01845efaef70689 --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/StabilityStoneCoverPluginTest.cs (.../StabilityStoneCoverPluginTest.cs) (revision d7ee65107ab167be11bedb03745684bb0960dc98) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/StabilityStoneCoverPluginTest.cs (.../StabilityStoneCoverPluginTest.cs) (revision 84b83644d2c80cbc8ffadbe0c01845efaef70689) @@ -156,11 +156,11 @@ using (var plugin = new StabilityStoneCoverPlugin()) { // Call - UpdateInfo[] exportInfos = plugin.GetUpdateInfos().ToArray(); + UpdateInfo[] updateInfos = plugin.GetUpdateInfos().ToArray(); // Assert - Assert.AreEqual(1, exportInfos.Length); - Assert.AreEqual(1, exportInfos.Count(ei => ei.DataType == typeof(StabilityStoneCoverFailureMechanismSectionsContext))); + Assert.AreEqual(1, updateInfos.Length); + Assert.AreEqual(1, updateInfos.Count(ei => ei.DataType == typeof(StabilityStoneCoverFailureMechanismSectionsContext))); } } } Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/WaveImpactAsphaltCoverPluginTest.cs =================================================================== diff -u -r4ea1061d06a72069439ac6a7cf81e7ab3345902a -r84b83644d2c80cbc8ffadbe0c01845efaef70689 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/WaveImpactAsphaltCoverPluginTest.cs (.../WaveImpactAsphaltCoverPluginTest.cs) (revision 4ea1061d06a72069439ac6a7cf81e7ab3345902a) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/WaveImpactAsphaltCoverPluginTest.cs (.../WaveImpactAsphaltCoverPluginTest.cs) (revision 84b83644d2c80cbc8ffadbe0c01845efaef70689) @@ -169,11 +169,11 @@ using (var plugin = new WaveImpactAsphaltCoverPlugin()) { // Call - UpdateInfo[] exportInfos = plugin.GetUpdateInfos().ToArray(); + UpdateInfo[] updateInfos = plugin.GetUpdateInfos().ToArray(); // Assert - Assert.AreEqual(1, exportInfos.Length); - Assert.AreEqual(1, exportInfos.Count(ei => ei.DataType == typeof(WaveImpactAsphaltCoverFailureMechanismSectionsContext))); + Assert.AreEqual(1, updateInfos.Length); + Assert.AreEqual(1, updateInfos.Count(ei => ei.DataType == typeof(WaveImpactAsphaltCoverFailureMechanismSectionsContext))); } } }