Index: Core/Common/src/Core.Common.Base/Properties/Resources.Designer.cs =================================================================== diff -u -re568165b751acf8d72cdf0d128f76d7792dadb56 -r454c559173fa5069917f2aab1a4d65ddbb019b3a --- Core/Common/src/Core.Common.Base/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision e568165b751acf8d72cdf0d128f76d7792dadb56) +++ Core/Common/src/Core.Common.Base/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 454c559173fa5069917f2aab1a4d65ddbb019b3a) @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.17929 +// Runtime Version:4.0.30319.18444 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -126,6 +126,15 @@ } /// + /// Looks up a localized string similar to Dijkprofielen. + /// + public static string GrassCoverErosionInwardsGuiPlugin_DikeProfilesContext_DisplayName { + get { + return ResourceManager.GetString("GrassCoverErosionInwardsGuiPlugin_DikeProfilesContext_DisplayName", resourceCulture); + } + } + + /// /// Looks up a localized string similar to Punten voor een lijn moeten uit elkaar liggen om een lijn te kunnen vormen.. /// public static string Math2D_LineIntersectionWithLine_Line_points_are_equal { Index: Core/Common/src/Core.Common.Base/Properties/Resources.resx =================================================================== diff -u -re568165b751acf8d72cdf0d128f76d7792dadb56 -r454c559173fa5069917f2aab1a4d65ddbb019b3a --- Core/Common/src/Core.Common.Base/Properties/Resources.resx (.../Resources.resx) (revision e568165b751acf8d72cdf0d128f76d7792dadb56) +++ Core/Common/src/Core.Common.Base/Properties/Resources.resx (.../Resources.resx) (revision 454c559173fa5069917f2aab1a4d65ddbb019b3a) @@ -180,4 +180,7 @@ Gras erosie kruin en binnentalud '{0}' niet gelukt. + + Dijkprofielen + \ No newline at end of file Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/DikeProfile.cs =================================================================== diff -u -rc65d19779f30d0192ec94761faa85521f1070b53 -r454c559173fa5069917f2aab1a4d65ddbb019b3a --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/DikeProfile.cs (.../DikeProfile.cs) (revision c65d19779f30d0192ec94761faa85521f1070b53) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/DikeProfile.cs (.../DikeProfile.cs) (revision 454c559173fa5069917f2aab1a4d65ddbb019b3a) @@ -49,16 +49,16 @@ throw new ArgumentNullException("worldCoordinate"); } - Name = "Dijkprofiel"; + Name = Resources.DikeProfile_DefaultName; Memo = ""; dikeGeometry = new List(); foreshoreGeometry = new List(); WorldReferencePoint = worldCoordinate; } /// - /// Orientation of the dike profile geometry with respect to North in degrees. A - /// positive value equals a clockwise rotation. + /// Gets or sets the orientation of the dike profile geometry with respect to North + /// in degrees. A positive value equals a clockwise rotation. /// /// When is /// not in range [0, 360]. @@ -72,35 +72,35 @@ { if (value < 0.0 || value > 360.0) { - string message = string.Format(Resources.DikeProfile_Orientation_Value_0_out_of_range, value); + string message = string.Format(Resources.DikeProfile_Orientation_Value_0_should_be_in_interval, value); throw new ArgumentOutOfRangeException("value", message); } orientation = value; } } /// - /// The reference point in world coordinates corresponding to the local coordinate . + /// Gets the reference point in world coordinates corresponding to the local coordinate . /// public Point2D WorldReferencePoint { get; private set; } /// - /// The local x-coordinate corresponding to the world reference point . + /// Gets or sets the local x-coordinate corresponding to the world reference point . /// public double X0 { get; set; } /// - /// Name of the dike profile. + /// Gets or sets the name of the dike profile. /// public string Name { get; set; } /// - /// The break water object of the dike profile, if any. + /// Gets or sets the break water object of the dike profile, if any. /// public BreakWater BreakWater { get; set; } /// - /// The geometry of the dike with roughness data. + /// Gets the geometry of the dike with roughness data. /// public IEnumerable DikeGeometry { @@ -111,7 +111,7 @@ } /// - /// The geometry of the foreshore. + /// Gets the geometry of the foreshore. /// public IEnumerable ForeshoreGeometry { @@ -122,17 +122,17 @@ } /// - /// The height of the dike [m+NAP]. + /// Gets or sets the height of the dike [m+NAP]. /// public double CrestLevel { get; set; } /// - /// Optional notes about this instance. + /// Gets or sets the optional notes about this instance. /// public string Memo { get; set; } /// - /// Indicates if there is a break water object available for this instances or not. + /// Indicates if there is a break water object available for this instance or not. /// public bool HasBreakWater { @@ -146,10 +146,10 @@ /// Adds a geometry section to . /// /// The new section to add. - /// Thrown when either - /// is not connected to or is connected but has - /// an incorrect orientation. - public void AddForshoreProfileSection(ProfileSection section) + /// Thrown when the + /// is either not connected to or is connected but + /// has an incorrect orientation. + public void AddForshoreGeometrySection(ProfileSection section) { AddProfileSection(foreshoreGeometry, section); } @@ -158,8 +158,8 @@ /// Adds a geometry section to . /// /// The new section to add. - /// Thrown when either - /// is not connected to or is connected but has + /// Thrown when the + /// is either not connected to or is connected but has /// an incorrect orientation. public void AddDikeGeometrySection(RoughnessProfileSection roughnessProfileSection) { @@ -173,9 +173,9 @@ /// The type of profile section. /// Collection of already defined geometry sections. /// The section to add to . - /// Thrown when either - /// is not connected to or is connected but has - /// an incorrect orientation. + /// Thrown when the + /// is either not connected to or is connected + /// but has an incorrect orientation. private static void AddProfileSection(IList profileSections, T section) where T : ProfileSection { if (profileSections.Count == 0) @@ -196,7 +196,6 @@ { profileSections.Insert(0, section); } - else if (section.StartingPoint.Equals(endingSection.EndingPoint)) { profileSections.Add(section); Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/GeneralGrassCoverErosionInwardsInput.cs =================================================================== diff -u -r14de3deecd2cff7f6abe41ed6dc5dc016c4c81e0 -r454c559173fa5069917f2aab1a4d65ddbb019b3a --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/GeneralGrassCoverErosionInwardsInput.cs (.../GeneralGrassCoverErosionInwardsInput.cs) (revision 14de3deecd2cff7f6abe41ed6dc5dc016c4c81e0) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/GeneralGrassCoverErosionInwardsInput.cs (.../GeneralGrassCoverErosionInwardsInput.cs) (revision 454c559173fa5069917f2aab1a4d65ddbb019b3a) @@ -80,7 +80,7 @@ { if (value < 1 || value > 20) { - throw new ArgumentOutOfRangeException("value", Resources.N_Value_should_be_in_interval_1_20); + throw new ArgumentOutOfRangeException("value", string.Format(Resources.N_Value_0_should_be_in_interval, value)); } n = value; } Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/ProfileSection.cs =================================================================== diff -u -rc65d19779f30d0192ec94761faa85521f1070b53 -r454c559173fa5069917f2aab1a4d65ddbb019b3a --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/ProfileSection.cs (.../ProfileSection.cs) (revision c65d19779f30d0192ec94761faa85521f1070b53) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/ProfileSection.cs (.../ProfileSection.cs) (revision 454c559173fa5069917f2aab1a4d65ddbb019b3a) @@ -50,7 +50,6 @@ } StartingPoint = startingPoint; EndingPoint = endingPoint; - Geometry = new Segment2D(startingPoint, endingPoint); } /// @@ -62,10 +61,5 @@ /// Gets the ending 2D geometry point of the . /// public Point2D EndingPoint { get; private set; } - - /// - /// Gets the 2D geometry of the . - /// - public Segment2D Geometry { get; private set; } } } \ No newline at end of file Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/Properties/Resources.Designer.cs =================================================================== diff -u -r9938fe60c563aaac8f3b25bad22a1d6b9b780fd1 -r454c559173fa5069917f2aab1a4d65ddbb019b3a --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 9938fe60c563aaac8f3b25bad22a1d6b9b780fd1) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 454c559173fa5069917f2aab1a4d65ddbb019b3a) @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.42000 +// Runtime Version:4.0.30319.18444 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -88,7 +88,7 @@ } /// - /// Looks up a localized string similar to Het nieuwe segment is wel verbonden, maar heeft verkeerde oriëntatie (moet omgedraaid worden).. + /// Looks up a localized string similar to Het nieuwe segment is wel verbonden, maar heeft een verkeerde oriëntatie (moet omgedraaid worden).. /// public static string DikeProfile_AddProfileSection_New_segment_connected_with_incorrect_orientation { get { @@ -106,15 +106,24 @@ } /// - /// Looks up a localized string similar to De dijkprofiel oriëntatie waarde {0} valt buiten het geldige bereik [0, 360].. + /// Looks up a localized string similar to Dijkprofiel. /// - public static string DikeProfile_Orientation_Value_0_out_of_range { + public static string DikeProfile_DefaultName { get { - return ResourceManager.GetString("DikeProfile_Orientation_Value_0_out_of_range", resourceCulture); + return ResourceManager.GetString("DikeProfile_DefaultName", resourceCulture); } } /// + /// Looks up a localized string similar to De dijkprofiel oriëntatie waarde {0} moet in het interval [0, 360] liggen.. + /// + public static string DikeProfile_Orientation_Value_0_should_be_in_interval { + get { + return ResourceManager.GetString("DikeProfile_Orientation_Value_0_should_be_in_interval", resourceCulture); + } + } + + /// /// Looks up a localized string similar to Nieuwe berekening. /// public static string GrassCoverErosionInwardsCalculation_DefaultName { @@ -142,11 +151,11 @@ } /// - /// Looks up a localized string similar to De waarde voor 'N' moet in interval [1, 20] liggen.. + /// Looks up a localized string similar to De 'N' waarde {0} moet in het interval [1, 20] liggen.. /// - public static string N_Value_should_be_in_interval_1_20 { + public static string N_Value_0_should_be_in_interval { get { - return ResourceManager.GetString("N_Value_should_be_in_interval_1_20", resourceCulture); + return ResourceManager.GetString("N_Value_0_should_be_in_interval", resourceCulture); } } } Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/Properties/Resources.resx =================================================================== diff -u -r9938fe60c563aaac8f3b25bad22a1d6b9b780fd1 -r454c559173fa5069917f2aab1a4d65ddbb019b3a --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/Properties/Resources.resx (.../Resources.resx) (revision 9938fe60c563aaac8f3b25bad22a1d6b9b780fd1) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Data/Properties/Resources.resx (.../Resources.resx) (revision 454c559173fa5069917f2aab1a4d65ddbb019b3a) @@ -135,16 +135,19 @@ Havendam - - De waarde voor 'N' moet in interval [1, 20] liggen. + + De 'N' waarde {0} moet in het interval [1, 20] liggen. - - De dijkprofiel oriëntatie waarde {0} valt buiten het geldige bereik [0, 360]. + + De dijkprofiel oriëntatie waarde {0} moet in het interval [0, 360] liggen. - Het nieuwe segment is wel verbonden, maar heeft verkeerde oriëntatie (moet omgedraaid worden). + Het nieuwe segment is wel verbonden, maar heeft een verkeerde oriëntatie (moet omgedraaid worden). Het nieuwe segment is niet verbonden met de bestaande geometrie. + + Dijkprofiel + \ No newline at end of file Index: Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Plugin/GrassCoverErosionInwardsGuiPlugin.cs =================================================================== diff -u -r0a51f20ac93373a43f79bb4c6327bce1d46545c6 -r454c559173fa5069917f2aab1a4d65ddbb019b3a --- Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Plugin/GrassCoverErosionInwardsGuiPlugin.cs (.../GrassCoverErosionInwardsGuiPlugin.cs) (revision 0a51f20ac93373a43f79bb4c6327bce1d46545c6) +++ Ringtoets/GrassCoverErosionInwards/src/Ringtoets.GrassCoverErosionInwards.Plugin/GrassCoverErosionInwardsGuiPlugin.cs (.../GrassCoverErosionInwardsGuiPlugin.cs) (revision 454c559173fa5069917f2aab1a4d65ddbb019b3a) @@ -95,7 +95,7 @@ yield return new TreeNodeInfo { - Text = context => "Dijkprofielen", + Text = context => BaseResources.GrassCoverErosionInwardsGuiPlugin_DikeProfilesContext_DisplayName, Image = context => RingtoetsCommonFormsResources.GeneralFolderIcon, ForeColor = context => context.WrappedData.Any() ? Color.FromKnownColor(KnownColor.ControlText) : Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/DikeProfileTest.cs =================================================================== diff -u -rc65d19779f30d0192ec94761faa85521f1070b53 -r454c559173fa5069917f2aab1a4d65ddbb019b3a --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/DikeProfileTest.cs (.../DikeProfileTest.cs) (revision c65d19779f30d0192ec94761faa85521f1070b53) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/DikeProfileTest.cs (.../DikeProfileTest.cs) (revision 454c559173fa5069917f2aab1a4d65ddbb019b3a) @@ -89,7 +89,7 @@ [TestCase(-1e-6)] [TestCase(360 + 1e-6)] [TestCase(875.12)] - public void Orientation_SetIllegalValue_ValidationError(double invalidNewValue) + public void Orientation_SetIllegalValue_ThrowsArgumentOutOfRangeException(double invalidNewValue) { // Setup var dikeProfile = new DikeProfile(new Point2D(0, 0)); @@ -98,7 +98,7 @@ TestDelegate call = () => dikeProfile.Orientation = invalidNewValue; // Assert - string expectedMessage = String.Format("De dijkprofiel oriëntatie waarde {0} valt buiten het geldige bereik [0, 360].", + string expectedMessage = String.Format("De dijkprofiel oriëntatie waarde {0} moet in het interval [0, 360] liggen.", invalidNewValue); TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, expectedMessage); } @@ -233,7 +233,7 @@ CollectionAssert.IsEmpty(dikeProfile.ForeshoreGeometry); // Call - dikeProfile.AddForshoreProfileSection(newSection); + dikeProfile.AddForshoreGeometrySection(newSection); // Assert CollectionAssert.Contains(dikeProfile.ForeshoreGeometry, newSection); @@ -248,12 +248,12 @@ var connectedPoint = new Point2D(1.1, 2.2); var existingSection = new ProfileSection(connectedPoint, new Point2D(3.3, 4.4)); - dikeProfile.AddForshoreProfileSection(existingSection); + dikeProfile.AddForshoreGeometrySection(existingSection); var newSection = new ProfileSection(new Point2D(0.0, 0.0), connectedPoint); // Call - dikeProfile.AddForshoreProfileSection(newSection); + dikeProfile.AddForshoreGeometrySection(newSection); // Assert ProfileSection[] expectedForshoreSections = @@ -272,16 +272,16 @@ var connectedPoint = new Point2D(1.1, 2.2); var existingSection = new ProfileSection(connectedPoint, new Point2D(3.3, 4.4)); - dikeProfile.AddForshoreProfileSection(existingSection); + dikeProfile.AddForshoreGeometrySection(existingSection); var newSection = new ProfileSection(connectedPoint, new Point2D(0.0, 0.0)); // Call - TestDelegate call = () => dikeProfile.AddForshoreProfileSection(newSection); + TestDelegate call = () => dikeProfile.AddForshoreGeometrySection(newSection); // Assert TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, - "Het nieuwe segment is wel verbonden, maar heeft verkeerde oriëntatie (moet omgedraaid worden)."); + "Het nieuwe segment is wel verbonden, maar heeft een verkeerde oriëntatie (moet omgedraaid worden)."); CollectionAssert.DoesNotContain(dikeProfile.ForeshoreGeometry, newSection); } @@ -293,12 +293,12 @@ var connectedPoint = new Point2D(4.4, 5.5); var existingSection = new ProfileSection(new Point2D(1.1, 2.2), connectedPoint); - dikeProfile.AddForshoreProfileSection(existingSection); + dikeProfile.AddForshoreGeometrySection(existingSection); var newSection = new ProfileSection(connectedPoint, new Point2D(12.12, 13.13)); // Call - dikeProfile.AddForshoreProfileSection(newSection); + dikeProfile.AddForshoreGeometrySection(newSection); // Assert ProfileSection[] expectedForshoreSections = @@ -317,16 +317,16 @@ var connectedPoint = new Point2D(4.4, 5.5); var existingSection = new ProfileSection(new Point2D(1.1, 2.2), connectedPoint); - dikeProfile.AddForshoreProfileSection(existingSection); + dikeProfile.AddForshoreGeometrySection(existingSection); var newSection = new ProfileSection(new Point2D(12.12, 13.13), connectedPoint); // Call - TestDelegate call = () => dikeProfile.AddForshoreProfileSection(newSection); + TestDelegate call = () => dikeProfile.AddForshoreGeometrySection(newSection); // Assert TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, - "Het nieuwe segment is wel verbonden, maar heeft verkeerde oriëntatie (moet omgedraaid worden)."); + "Het nieuwe segment is wel verbonden, maar heeft een verkeerde oriëntatie (moet omgedraaid worden)."); CollectionAssert.DoesNotContain(dikeProfile.ForeshoreGeometry, newSection); } @@ -348,15 +348,15 @@ .Select(segment => new ProfileSection(segment.FirstPoint, segment.SecondPoint)); foreach (ProfileSection existingSection in existingSections) { - dikeProfile.AddForshoreProfileSection(existingSection); + dikeProfile.AddForshoreGeometrySection(existingSection); } var random = new Random(123); var totallyDisconnectSection = new ProfileSection(new Point2D(random.NextDouble(), random.NextDouble()), new Point2D(random.NextDouble(), random.NextDouble())); // Call - TestDelegate call = () => dikeProfile.AddForshoreProfileSection(totallyDisconnectSection); + TestDelegate call = () => dikeProfile.AddForshoreGeometrySection(totallyDisconnectSection); // Assert TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, @@ -385,13 +385,13 @@ .ToArray(); foreach (ProfileSection existingSection in existingSections) { - dikeProfile.AddForshoreProfileSection(existingSection); + dikeProfile.AddForshoreGeometrySection(existingSection); } ProfileSection totallyDisconnectSection = existingSections[index]; // Call - TestDelegate call = () => dikeProfile.AddForshoreProfileSection(totallyDisconnectSection); + TestDelegate call = () => dikeProfile.AddForshoreGeometrySection(totallyDisconnectSection); // Assert TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, @@ -419,13 +419,13 @@ .ToArray(); foreach (ProfileSection existingSection in existingSections) { - dikeProfile.AddForshoreProfileSection(existingSection); + dikeProfile.AddForshoreGeometrySection(existingSection); } var touchingSection = new ProfileSection(existingSections[index].EndingPoint, new Point2D(999.99, 999.9)); // Call - TestDelegate call = () => dikeProfile.AddForshoreProfileSection(touchingSection); + TestDelegate call = () => dikeProfile.AddForshoreGeometrySection(touchingSection); // Assert TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, @@ -453,13 +453,13 @@ .ToArray(); foreach (ProfileSection existingSection in existingSections) { - dikeProfile.AddForshoreProfileSection(existingSection); + dikeProfile.AddForshoreGeometrySection(existingSection); } var touchingSection = new ProfileSection(new Point2D(999.99, 999.9), existingSections[index].StartingPoint); // Call - TestDelegate call = () => dikeProfile.AddForshoreProfileSection(touchingSection); + TestDelegate call = () => dikeProfile.AddForshoreGeometrySection(touchingSection); // Assert TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, @@ -527,7 +527,7 @@ // Assert TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, - "Het nieuwe segment is wel verbonden, maar heeft verkeerde oriëntatie (moet omgedraaid worden)."); + "Het nieuwe segment is wel verbonden, maar heeft een verkeerde oriëntatie (moet omgedraaid worden)."); CollectionAssert.DoesNotContain(dikeProfile.DikeGeometry, newSection); } @@ -572,7 +572,7 @@ // Assert TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, - "Het nieuwe segment is wel verbonden, maar heeft verkeerde oriëntatie (moet omgedraaid worden)."); + "Het nieuwe segment is wel verbonden, maar heeft een verkeerde oriëntatie (moet omgedraaid worden)."); CollectionAssert.DoesNotContain(dikeProfile.DikeGeometry, newSection); } Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/GeneralGrassCoverErosionInwardsInputTest.cs =================================================================== diff -u -r006d96ecb9e7d838d7682912270c7d43e0ad67e1 -r454c559173fa5069917f2aab1a4d65ddbb019b3a --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/GeneralGrassCoverErosionInwardsInputTest.cs (.../GeneralGrassCoverErosionInwardsInputTest.cs) (revision 006d96ecb9e7d838d7682912270c7d43e0ad67e1) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/GeneralGrassCoverErosionInwardsInputTest.cs (.../GeneralGrassCoverErosionInwardsInputTest.cs) (revision 454c559173fa5069917f2aab1a4d65ddbb019b3a) @@ -101,7 +101,8 @@ TestDelegate test = () => generalGrassCoverErosionInwardsInput.N = value; // Assert - TestHelper.AssertThrowsArgumentExceptionAndTestMessage(test, Resources.N_Value_should_be_in_interval_1_20); + string expectedMessage = string.Format(Resources.N_Value_0_should_be_in_interval, value); + TestHelper.AssertThrowsArgumentExceptionAndTestMessage(test, expectedMessage); } } } \ No newline at end of file Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/ProfileSectionTest.cs =================================================================== diff -u -rc65d19779f30d0192ec94761faa85521f1070b53 -r454c559173fa5069917f2aab1a4d65ddbb019b3a --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/ProfileSectionTest.cs (.../ProfileSectionTest.cs) (revision c65d19779f30d0192ec94761faa85521f1070b53) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/ProfileSectionTest.cs (.../ProfileSectionTest.cs) (revision 454c559173fa5069917f2aab1a4d65ddbb019b3a) @@ -42,10 +42,6 @@ Assert.IsNotNull(profileSection); Assert.AreSame(begin, profileSection.StartingPoint); Assert.AreSame(end, profileSection.EndingPoint); - - Assert.IsInstanceOf(profileSection.Geometry); - Assert.AreSame(begin, profileSection.Geometry.FirstPoint); - Assert.AreSame(end, profileSection.Geometry.SecondPoint); } [Test] Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/PresentationObjects/DikeProfilesContextTest.cs =================================================================== diff -u -r5546343f650bb277b3c1937f1abf3ee0b7a7dc89 -r454c559173fa5069917f2aab1a4d65ddbb019b3a --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/PresentationObjects/DikeProfilesContextTest.cs (.../DikeProfilesContextTest.cs) (revision 5546343f650bb277b3c1937f1abf3ee0b7a7dc89) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/PresentationObjects/DikeProfilesContextTest.cs (.../DikeProfilesContextTest.cs) (revision 454c559173fa5069917f2aab1a4d65ddbb019b3a) @@ -77,8 +77,6 @@ [Test] public void Constructor_AssessmentSectionIsNull_ThrowArgumentNullException() { - // Setup - // Call TestDelegate call = () => new DikeProfilesContext(new ObservableList(), null); Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/TreeNodeInfos/DikeProfilesContextTreeNodeInfoTest.cs =================================================================== diff -u -r6952c1fa40cd233e974abf1a31867bcd49b5795e -r454c559173fa5069917f2aab1a4d65ddbb019b3a --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/TreeNodeInfos/DikeProfilesContextTreeNodeInfoTest.cs (.../DikeProfilesContextTreeNodeInfoTest.cs) (revision 6952c1fa40cd233e974abf1a31867bcd49b5795e) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/TreeNodeInfos/DikeProfilesContextTreeNodeInfoTest.cs (.../DikeProfilesContextTreeNodeInfoTest.cs) (revision 454c559173fa5069917f2aab1a4d65ddbb019b3a) @@ -96,7 +96,7 @@ } [Test] - public void Image_Always_ReturnExpectedText() + public void Image_Always_ReturnExpectedImage() { // Setup var mocks = new MockRepository();