Index: Ringtoets/Common/test/Ringtoets.Common.IO.TestUtil/FileTestHelper.cs
===================================================================
diff -u
--- Ringtoets/Common/test/Ringtoets.Common.IO.TestUtil/FileTestHelper.cs (revision 0)
+++ Ringtoets/Common/test/Ringtoets.Common.IO.TestUtil/FileTestHelper.cs (revision 2c3c354d3910e788173efc979e04e3701bcdb659)
@@ -0,0 +1,87 @@
+// 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.IO;
+using System.Linq;
+using NUnit.Framework;
+
+namespace Ringtoets.Common.IO.TestUtil
+{
+ ///
+ /// A helper for asserting files.
+ ///
+ public static class FileTestHelper
+ {
+ ///
+ /// Asserts whether or not all essential shapefile related files exist (.shp, .shx and .dbf).
+ ///
+ /// The directory in which to search for the files.
+ /// The base name of the files to search for.
+ /// Whether or not the essential files should exist.
+ /// Thrown when the actual file existence does not meet the
+ /// expected state.
+ public static void AssertEssentialShapefilesExist(string directoryPath, string baseName, bool shouldExist)
+ {
+ string pathName = Path.Combine(directoryPath, baseName);
+ Assert.AreEqual(shouldExist, File.Exists(pathName + ".shp"));
+ Assert.AreEqual(shouldExist, File.Exists(pathName + ".shx"));
+ Assert.AreEqual(shouldExist, File.Exists(pathName + ".dbf"));
+ }
+
+ ///
+ /// Asserts whether all essential shapefile related files (.shp, .shx and .dbf) contain the same binary
+ /// content as some corresponding reference files.
+ ///
+ /// The directory to obtain the actual files from.
+ /// The base name of the actual files.
+ /// The directory to obtain the expected files from.
+ /// The base name of the expected files.
+ /// The expected body length of the .shp file.
+ /// The expected body length of the .shx file.
+ /// The expected body length of the .dbf file.
+ /// Thrown when the actual files do not contain the same binary
+ /// content as the expected files.
+ private static void AssertEssentialShapefileMd5Hashes(string directoryPathWithActualFiles,
+ string baseNameOfActualFiles,
+ string directoryPathWithExpectedFiles,
+ string baseNameOfExpectedFiles,
+ int expectedShpBodyLength,
+ int expectedShxBodyLength,
+ int expectedDbfBodyLength)
+ {
+ string pathName = Path.Combine(directoryPathWithActualFiles, baseNameOfActualFiles);
+ string refPathName = Path.Combine(directoryPathWithExpectedFiles, baseNameOfExpectedFiles);
+
+ AssertBinaryFileContent(refPathName, pathName, ".shp", 100, expectedShpBodyLength);
+ AssertBinaryFileContent(refPathName, pathName, ".shx", 100, expectedShxBodyLength);
+ AssertBinaryFileContent(refPathName, pathName, ".dbf", 32, expectedDbfBodyLength);
+ }
+
+ private static void AssertBinaryFileContent(string refPathName, string pathName, string extension, int headerLength, int bodyLength)
+ {
+ byte[] refContent = File.ReadAllBytes(refPathName + extension);
+ byte[] content = File.ReadAllBytes(pathName + extension);
+ Assert.AreEqual(headerLength + bodyLength, content.Length);
+ Assert.AreEqual(refContent.Skip(headerLength).Take(bodyLength),
+ content.Skip(headerLength).Take(bodyLength));
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.IO/Exporters/GrassCoverErosionOutwardsHydraulicBoundaryLocationsExporter.cs
===================================================================
diff -u -rc6bb356ca9ac02009e91e7e50dbcff56efcd7a52 -r2c3c354d3910e788173efc979e04e3701bcdb659
--- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.IO/Exporters/GrassCoverErosionOutwardsHydraulicBoundaryLocationsExporter.cs (.../GrassCoverErosionOutwardsHydraulicBoundaryLocationsExporter.cs) (revision c6bb356ca9ac02009e91e7e50dbcff56efcd7a52)
+++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.IO/Exporters/GrassCoverErosionOutwardsHydraulicBoundaryLocationsExporter.cs (.../GrassCoverErosionOutwardsHydraulicBoundaryLocationsExporter.cs) (revision 2c3c354d3910e788173efc979e04e3701bcdb659)
@@ -45,7 +45,7 @@
/// Creates a new instance of .
///
/// The failure mechanism to get calculations from.
- /// The assessment section to get locations and calculation from.
+ /// The assessment section to get locations and calculations from.
/// The path of the file to export to.
/// Thrown when or
/// is null.
Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Util/GrassCoverErosionOutwardsHydraulicBoundaryLocationMapDataFeaturesFactory.cs
===================================================================
diff -u -r9134b288215ec6dd8b2d1eb5f5f0c9603baa734d -r2c3c354d3910e788173efc979e04e3701bcdb659
--- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Util/GrassCoverErosionOutwardsHydraulicBoundaryLocationMapDataFeaturesFactory.cs (.../GrassCoverErosionOutwardsHydraulicBoundaryLocationMapDataFeaturesFactory.cs) (revision 9134b288215ec6dd8b2d1eb5f5f0c9603baa734d)
+++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Util/GrassCoverErosionOutwardsHydraulicBoundaryLocationMapDataFeaturesFactory.cs (.../GrassCoverErosionOutwardsHydraulicBoundaryLocationMapDataFeaturesFactory.cs) (revision 2c3c354d3910e788173efc979e04e3701bcdb659)
@@ -38,7 +38,7 @@
/// The location to create the feature for.
/// The provider of the labels.
/// A feature based on the given .
- /// Thrown when all parameters are null.
+ /// Thrown when any parameter is null.
public static MapFeature CreateHydraulicBoundaryLocationFeature(GrassCoverErosionOutwardsAggregatedHydraulicBoundaryLocation location,
IGrassCoverErosionOutwardsHydraulicBoundaryLocationMetaDataAttributeNameProvider nameProvider)
{
Index: Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Util/IGrassCoverErosionOutwardsHydraulicBoundaryLocationMetaDataAttributeNameProvider.cs
===================================================================
diff -u -ra515ad85896ba1e242bacc8f3c6e59cf2bb607b9 -r2c3c354d3910e788173efc979e04e3701bcdb659
--- Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Util/IGrassCoverErosionOutwardsHydraulicBoundaryLocationMetaDataAttributeNameProvider.cs (.../IGrassCoverErosionOutwardsHydraulicBoundaryLocationMetaDataAttributeNameProvider.cs) (revision a515ad85896ba1e242bacc8f3c6e59cf2bb607b9)
+++ Ringtoets/GrassCoverErosionOutwards/src/Ringtoets.GrassCoverErosionOutwards.Util/IGrassCoverErosionOutwardsHydraulicBoundaryLocationMetaDataAttributeNameProvider.cs (.../IGrassCoverErosionOutwardsHydraulicBoundaryLocationMetaDataAttributeNameProvider.cs) (revision 2c3c354d3910e788173efc979e04e3701bcdb659)
@@ -31,7 +31,7 @@
/// for mechanism specific factorized signaling norm.
///
string WaterLevelCalculationForMechanismSpecificFactorizedSignalingNormAttributeName { get; }
-
+
///
/// Gets the meta data attribute name of the water level calculation
/// for mechanism specific signaling norm.
@@ -61,7 +61,7 @@
/// for mechanism specific factorized signaling norm.
///
string WaveHeightCalculationForMechanismSpecificFactorizedSignalingNormAttributeName { get; }
-
+
///
/// Gets the meta data attribute name of the wave height calculation
/// for mechanism specific signaling norm.
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Data.Test/GrassCoverErosionOutwardsFailureMechanismExtensionsTest.cs
===================================================================
diff -u -r3bc137619c51529afcab45085ae338e722ff449a -r2c3c354d3910e788173efc979e04e3701bcdb659
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Data.Test/GrassCoverErosionOutwardsFailureMechanismExtensionsTest.cs (.../GrassCoverErosionOutwardsFailureMechanismExtensionsTest.cs) (revision 3bc137619c51529afcab45085ae338e722ff449a)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Data.Test/GrassCoverErosionOutwardsFailureMechanismExtensionsTest.cs (.../GrassCoverErosionOutwardsFailureMechanismExtensionsTest.cs) (revision 2c3c354d3910e788173efc979e04e3701bcdb659)
@@ -98,7 +98,7 @@
var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation();
var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism();
- GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.AddHydraulicBoundaryLocations(
+ GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.SetHydraulicBoundaryLocations(
failureMechanism, assessmentSection,
new[]
{
@@ -122,7 +122,7 @@
var hydraulicBoundaryLocation = new TestHydraulicBoundaryLocation();
var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism();
- GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.AddHydraulicBoundaryLocations(
+ GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.SetHydraulicBoundaryLocations(
failureMechanism, assessmentSection,
new[]
{
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.IO.Test/Exporters/GrassCoverErosionOutwardsHydraulicBoundaryLocationsExporterTest.cs
===================================================================
diff -u -red32f16291395cfecffba5a76a98466f3c27b4b3 -r2c3c354d3910e788173efc979e04e3701bcdb659
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.IO.Test/Exporters/GrassCoverErosionOutwardsHydraulicBoundaryLocationsExporterTest.cs (.../GrassCoverErosionOutwardsHydraulicBoundaryLocationsExporterTest.cs) (revision ed32f16291395cfecffba5a76a98466f3c27b4b3)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.IO.Test/Exporters/GrassCoverErosionOutwardsHydraulicBoundaryLocationsExporterTest.cs (.../GrassCoverErosionOutwardsHydraulicBoundaryLocationsExporterTest.cs) (revision 2c3c354d3910e788173efc979e04e3701bcdb659)
@@ -75,7 +75,7 @@
}
[Test]
- public void Constructor_FilePathNull_ThrowArgumentException()
+ public void Constructor_FilePathNull_ThrowsArgumentException()
{
// Setup
var mocks = new MockRepository();
@@ -120,7 +120,7 @@
new HydraulicBoundaryLocation(123, "aName", 1.1, 2.2)
});
- string directoryPath = TestHelper.GetScratchPadPath("Export_ValidData_ReturnTrue");
+ string directoryPath = TestHelper.GetScratchPadPath("Export_ValidData_ReturnsTrueAndWritesCorrectData");
Directory.CreateDirectory(directoryPath);
string filePath = Path.Combine(directoryPath, "test.shp");
const string baseName = "test";
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.IO.Test/Exporters/GrassCoverErosionOutwardsHydraulicBoundaryLocationsWriterTest.cs
===================================================================
diff -u -r9134b288215ec6dd8b2d1eb5f5f0c9603baa734d -r2c3c354d3910e788173efc979e04e3701bcdb659
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.IO.Test/Exporters/GrassCoverErosionOutwardsHydraulicBoundaryLocationsWriterTest.cs (.../GrassCoverErosionOutwardsHydraulicBoundaryLocationsWriterTest.cs) (revision 9134b288215ec6dd8b2d1eb5f5f0c9603baa734d)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.IO.Test/Exporters/GrassCoverErosionOutwardsHydraulicBoundaryLocationsWriterTest.cs (.../GrassCoverErosionOutwardsHydraulicBoundaryLocationsWriterTest.cs) (revision 2c3c354d3910e788173efc979e04e3701bcdb659)
@@ -49,7 +49,7 @@
}
[Test]
- public void WriteHydrauulicBoundaryLocations_FilePathNull_ThrowsArgumentNullException()
+ public void WriteHydraulicBoundaryLocations_FilePathNull_ThrowsArgumentNullException()
{
// Call
TestDelegate call = () => GrassCoverErosionOutwardsHydraulicBoundaryLocationsWriter.WriteHydraulicBoundaryLocations(
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.IO.Test/test-data/GrassCoverErosionOutwardsHydraulicBoundaryLocationsExporter/ExpectedExport.dbf.bak
===================================================================
diff -u -rc6bb356ca9ac02009e91e7e50dbcff56efcd7a52 -r2c3c354d3910e788173efc979e04e3701bcdb659
Binary files differ
Fisheye: Tag 2fd96187f75c7b24ccb411ecf5b6c8f0dcc591bb refers to a dead (removed) revision in file `Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/ExportInfos/HydraulicBoundariesGroupContextExportInfoTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Fisheye: Tag 2c3c354d3910e788173efc979e04e3701bcdb659 refers to a dead (removed) revision in file `Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/ExportInfos/HydraulicBoundariesGroupContextLocationsExportInfoTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/PropertyInfos/GrassCoverErosionOutwardsWaveConditionsInputContextPropertyInfoTest.cs
===================================================================
diff -u -r9220252527e825e91497208122395f503f555bb1 -r2c3c354d3910e788173efc979e04e3701bcdb659
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/PropertyInfos/GrassCoverErosionOutwardsWaveConditionsInputContextPropertyInfoTest.cs (.../GrassCoverErosionOutwardsWaveConditionsInputContextPropertyInfoTest.cs) (revision 9220252527e825e91497208122395f503f555bb1)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/PropertyInfos/GrassCoverErosionOutwardsWaveConditionsInputContextPropertyInfoTest.cs (.../GrassCoverErosionOutwardsWaveConditionsInputContextPropertyInfoTest.cs) (revision 2c3c354d3910e788173efc979e04e3701bcdb659)
@@ -65,7 +65,7 @@
}
};
- GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.AddHydraulicBoundaryLocations(
+ GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.SetHydraulicBoundaryLocations(
failureMechanism, assessmentSection, new[]
{
hydraulicBoundaryLocation
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test.csproj
===================================================================
diff -u -r9220252527e825e91497208122395f503f555bb1 -r2c3c354d3910e788173efc979e04e3701bcdb659
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test.csproj (.../Ringtoets.GrassCoverErosionOutwards.Plugin.Test.csproj) (revision 9220252527e825e91497208122395f503f555bb1)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test.csproj (.../Ringtoets.GrassCoverErosionOutwards.Plugin.Test.csproj) (revision 2c3c354d3910e788173efc979e04e3701bcdb659)
@@ -30,7 +30,7 @@
-
+
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationContextTreeNodeInfoTest.cs
===================================================================
diff -u -rf7b5e37a3d47d5a8c5de988b601ad71159d7755e -r2c3c354d3910e788173efc979e04e3701bcdb659
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationContextTreeNodeInfoTest.cs) (revision f7b5e37a3d47d5a8c5de988b601ad71159d7755e)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationContextTreeNodeInfoTest.cs) (revision 2c3c354d3910e788173efc979e04e3701bcdb659)
@@ -329,7 +329,7 @@
foreshoreProfile
}, "path");
- GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.AddHydraulicBoundaryLocations(
+ GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.SetHydraulicBoundaryLocations(
failureMechanism, assessmentSection, new[]
{
location
@@ -387,7 +387,7 @@
foreshoreProfile
}, "path");
- GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.AddHydraulicBoundaryLocations(
+ GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.SetHydraulicBoundaryLocations(
failureMechanism, assessmentSection, new[]
{
location
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs
===================================================================
diff -u -r9ba8981ff2d55e166f8f223387753a43ebeed0db -r2c3c354d3910e788173efc979e04e3701bcdb659
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs) (revision 9ba8981ff2d55e166f8f223387753a43ebeed0db)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs) (revision 2c3c354d3910e788173efc979e04e3701bcdb659)
@@ -1811,7 +1811,7 @@
var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism();
var assessmentSection = new AssessmentSectionStub();
- GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.AddHydraulicBoundaryLocations(
+ GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.SetHydraulicBoundaryLocations(
failureMechanism, assessmentSection, new[]
{
hydraulicBoundaryLocation1,
@@ -1879,7 +1879,7 @@
var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism();
var assessmentSection = new AssessmentSectionStub();
- GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.AddHydraulicBoundaryLocations(
+ GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.SetHydraulicBoundaryLocations(
failureMechanism, assessmentSection, new[]
{
hydraulicBoundaryLocation1,
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Util.Test/GrassCoverErosionOutwardsHydraulicBoundaryLocationMapDataFeaturesFactoryTest.cs
===================================================================
diff -u -r21fcf8400284f5279ac15a7a18dcffc88e2b7a53 -r2c3c354d3910e788173efc979e04e3701bcdb659
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Util.Test/GrassCoverErosionOutwardsHydraulicBoundaryLocationMapDataFeaturesFactoryTest.cs (.../GrassCoverErosionOutwardsHydraulicBoundaryLocationMapDataFeaturesFactoryTest.cs) (revision 21fcf8400284f5279ac15a7a18dcffc88e2b7a53)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Util.Test/GrassCoverErosionOutwardsHydraulicBoundaryLocationMapDataFeaturesFactoryTest.cs (.../GrassCoverErosionOutwardsHydraulicBoundaryLocationMapDataFeaturesFactoryTest.cs) (revision 2c3c354d3910e788173efc979e04e3701bcdb659)
@@ -54,7 +54,7 @@
{
// Setup
GrassCoverErosionOutwardsAggregatedHydraulicBoundaryLocation location = GrassCoverErosionOutwardsAggregatedHydraulicBoundaryLocationTestHelper.Create();
-
+
// Call
TestDelegate call = () => GrassCoverErosionOutwardsHydraulicBoundaryLocationMapDataFeaturesFactory.CreateHydraulicBoundaryLocationFeature(location, null);
Index: Ringtoets/Integration/src/Ringtoets.Integration.IO/Exporters/HydraulicBoundaryLocationsExporter.cs
===================================================================
diff -u -r7da1d7b169c200fb9bd3080296d94eaae1471585 -r2c3c354d3910e788173efc979e04e3701bcdb659
--- Ringtoets/Integration/src/Ringtoets.Integration.IO/Exporters/HydraulicBoundaryLocationsExporter.cs (.../HydraulicBoundaryLocationsExporter.cs) (revision 7da1d7b169c200fb9bd3080296d94eaae1471585)
+++ Ringtoets/Integration/src/Ringtoets.Integration.IO/Exporters/HydraulicBoundaryLocationsExporter.cs (.../HydraulicBoundaryLocationsExporter.cs) (revision 2c3c354d3910e788173efc979e04e3701bcdb659)
@@ -42,7 +42,7 @@
///
/// Creates a new instance of .
///
- /// The assessment section to get locations and calculation from.
+ /// The assessment section to get locations and calculations from.
/// The path of the file to export to.
/// Thrown when
/// is null.
Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Exporters/HydraulicBoundaryLocationsExporterTest.cs
===================================================================
diff -u -r6f33b44599df032ecae3342b0aacd606a9e87c1f -r2c3c354d3910e788173efc979e04e3701bcdb659
--- Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Exporters/HydraulicBoundaryLocationsExporterTest.cs (.../HydraulicBoundaryLocationsExporterTest.cs) (revision 6f33b44599df032ecae3342b0aacd606a9e87c1f)
+++ Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Exporters/HydraulicBoundaryLocationsExporterTest.cs (.../HydraulicBoundaryLocationsExporterTest.cs) (revision 2c3c354d3910e788173efc979e04e3701bcdb659)
@@ -52,7 +52,7 @@
}
[Test]
- public void Constructor_FilePathNull_ThrowArgumentException()
+ public void Constructor_FilePathNull_ThrowsArgumentException()
{
// Setup
var mocks = new MockRepository();
@@ -95,7 +95,7 @@
new HydraulicBoundaryLocation(123, "aName", 1.1, 2.2)
});
- string directoryPath = TestHelper.GetScratchPadPath("Export_ValidData_ReturnTrue");
+ string directoryPath = TestHelper.GetScratchPadPath("Export_ValidData_ReturnsTrueAndWritesCorrectData");
Directory.CreateDirectory(directoryPath);
string filePath = Path.Combine(directoryPath, "test.shp");
const string baseName = "test";
Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Exporters/HydraulicBoundaryLocationsWriterTest.cs
===================================================================
diff -u -r0aa1b425595bb9a6a945f56673bc907790766528 -r2c3c354d3910e788173efc979e04e3701bcdb659
--- Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Exporters/HydraulicBoundaryLocationsWriterTest.cs (.../HydraulicBoundaryLocationsWriterTest.cs) (revision 0aa1b425595bb9a6a945f56673bc907790766528)
+++ Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Exporters/HydraulicBoundaryLocationsWriterTest.cs (.../HydraulicBoundaryLocationsWriterTest.cs) (revision 2c3c354d3910e788173efc979e04e3701bcdb659)
@@ -49,7 +49,7 @@
}
[Test]
- public void WriteHydrauulicBoundaryLocations_FilePathNull_ThrowsArgumentNullException()
+ public void WriteHydraulicBoundaryLocations_FilePathNull_ThrowsArgumentNullException()
{
// Call
TestDelegate call = () => HydraulicBoundaryLocationsWriter.WriteHydraulicBoundaryLocations(
Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/WaveConditionsInputViewInfoTest.cs
===================================================================
diff -u -rfd6fc8963fb4dbf6f2b5edae0991994983d6a1f6 -r2c3c354d3910e788173efc979e04e3701bcdb659
--- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/WaveConditionsInputViewInfoTest.cs (.../WaveConditionsInputViewInfoTest.cs) (revision fd6fc8963fb4dbf6f2b5edae0991994983d6a1f6)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/ViewInfos/WaveConditionsInputViewInfoTest.cs (.../WaveConditionsInputViewInfoTest.cs) (revision 2c3c354d3910e788173efc979e04e3701bcdb659)
@@ -523,7 +523,7 @@
var assessmentSection = new AssessmentSectionStub();
var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism();
- GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.AddHydraulicBoundaryLocations(
+ GrassCoverErosionOutwardsHydraulicBoundaryLocationsTestHelper.SetHydraulicBoundaryLocations(
failureMechanism, assessmentSection,
new []
{