Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismSectionResultRowTest.cs
===================================================================
diff -u -r69ddce7a597011b6a146facf2a9e557b2fb2c133 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismSectionResultRowTest.cs (.../ClosingStructuresFailureMechanismSectionResultRowTest.cs) (revision 69ddce7a597011b6a146facf2a9e557b2fb2c133)
+++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Forms.Test/Views/ClosingStructuresFailureMechanismSectionResultRowTest.cs (.../ClosingStructuresFailureMechanismSectionResultRowTest.cs) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -638,7 +638,7 @@
}
[Test]
- [TestCaseSource(typeof(FailureMechanismSectionResultRowTestHelper), nameof(FailureMechanismSectionResultRowTestHelper.CategoryGroupColorCases))]
+ [TestCaseSource(typeof(AssemblyCategoryColorTestHelper), nameof(AssemblyCategoryColorTestHelper.FailureMechanismSectionAssemblyCategoryGroupColorCases))]
public void Constructor_WithAssemblyCategoryGroupsSet_ExpectedColumnStates(FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup,
Color expectedBackgroundColor)
{
Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Helpers/AssemblyCategoryGroupHelper.cs
===================================================================
diff -u
--- Ringtoets/Common/src/Ringtoets.Common.Forms/Helpers/AssemblyCategoryGroupHelper.cs (revision 0)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/Helpers/AssemblyCategoryGroupHelper.cs (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -0,0 +1,110 @@
+// 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 System.ComponentModel;
+using System.Drawing;
+using Ringtoets.AssemblyTool.Data;
+
+namespace Ringtoets.Common.Forms.Helpers
+{
+ ///
+ /// Helper class for determining the colors belonging to various assembly category groups.
+ ///
+ public static class AssemblyCategoryGroupHelper
+ {
+ ///
+ /// Gets the color for a category group.
+ ///
+ /// The category group to get the color for.
+ /// The corresponding to the given category group.
+ /// Thrown when
+ /// has an invalid value for .
+ /// Thrown when
+ /// is not supported.
+ public static Color GetAssessmentSectionAssemblyCategoryGroupColor(AssessmentSectionAssemblyCategoryGroup assemblyCategoryGroup)
+ {
+ if (!Enum.IsDefined(typeof(AssessmentSectionAssemblyCategoryGroup), assemblyCategoryGroup))
+ {
+ throw new InvalidEnumArgumentException(nameof(assemblyCategoryGroup),
+ (int) assemblyCategoryGroup,
+ typeof(AssessmentSectionAssemblyCategoryGroup));
+ }
+
+ switch (assemblyCategoryGroup)
+ {
+ case AssessmentSectionAssemblyCategoryGroup.APlus:
+ return Color.FromArgb(0, 255, 0);
+ case AssessmentSectionAssemblyCategoryGroup.A:
+ return Color.FromArgb(118, 147, 60);
+ case AssessmentSectionAssemblyCategoryGroup.B:
+ return Color.FromArgb(255, 255, 0);
+ case AssessmentSectionAssemblyCategoryGroup.C:
+ return Color.FromArgb(255, 153, 0);
+ case AssessmentSectionAssemblyCategoryGroup.D:
+ return Color.FromArgb(255, 0, 0);
+ default:
+ throw new NotSupportedException();
+ }
+ }
+
+ ///
+ /// Gets the color for a category group.
+ ///
+ /// The category group to get the color for.
+ /// The corresponding to the given category group.
+ /// Thrown when
+ /// has an invalid value for .
+ /// Thrown when
+ /// is not supported.
+ public static Color GetFailureMechanismSectionAssemblyCategoryGroupColor(FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup)
+ {
+ if (!Enum.IsDefined(typeof(FailureMechanismSectionAssemblyCategoryGroup), assemblyCategoryGroup))
+ {
+ throw new InvalidEnumArgumentException(nameof(assemblyCategoryGroup),
+ (int) assemblyCategoryGroup,
+ typeof(FailureMechanismSectionAssemblyCategoryGroup));
+ }
+
+ switch (assemblyCategoryGroup)
+ {
+ case FailureMechanismSectionAssemblyCategoryGroup.Iv:
+ return Color.FromArgb(0, 255, 0);
+ case FailureMechanismSectionAssemblyCategoryGroup.IIv:
+ return Color.FromArgb(118, 147, 60);
+ case FailureMechanismSectionAssemblyCategoryGroup.IIIv:
+ return Color.FromArgb(255, 255, 0);
+ case FailureMechanismSectionAssemblyCategoryGroup.IVv:
+ return Color.FromArgb(204, 192, 218);
+ case FailureMechanismSectionAssemblyCategoryGroup.Vv:
+ return Color.FromArgb(255, 153, 0);
+ case FailureMechanismSectionAssemblyCategoryGroup.VIv:
+ return Color.FromArgb(255, 0, 0);
+ case FailureMechanismSectionAssemblyCategoryGroup.VIIv:
+ case FailureMechanismSectionAssemblyCategoryGroup.None:
+ case FailureMechanismSectionAssemblyCategoryGroup.NotApplicable:
+ return Color.FromArgb(255, 255, 255);
+ default:
+ throw new NotSupportedException();
+ }
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Helpers/FailureMechanismSectionResultRowHelper.cs
===================================================================
diff -u -re3f913fddac4cfa598ef5439ce6b832f354d7dd8 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/Common/src/Ringtoets.Common.Forms/Helpers/FailureMechanismSectionResultRowHelper.cs (.../FailureMechanismSectionResultRowHelper.cs) (revision e3f913fddac4cfa598ef5439ce6b832f354d7dd8)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/Helpers/FailureMechanismSectionResultRowHelper.cs (.../FailureMechanismSectionResultRowHelper.cs) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -149,7 +149,7 @@
columnStateDefinition.Style = new CellStyle(
Color.FromKnownColor(KnownColor.ControlText),
- GetCategoryGroupColor(assemblyCategoryGroup));
+ AssemblyCategoryGroupHelper.GetFailureMechanismSectionAssemblyCategoryGroupColor(assemblyCategoryGroup));
}
///
@@ -236,47 +236,6 @@
return new EnumDisplayWrapper(displayCategoryGroup).DisplayName;
}
- ///
- /// Gets the color for a category group.
- ///
- /// The category group to get the color for.
- /// The corresponding to the given category group.
- /// Thrown when
- /// has an invalid value for .
- /// Thrown when
- /// is not supported.
- private static Color GetCategoryGroupColor(FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup)
- {
- if (!Enum.IsDefined(typeof(FailureMechanismSectionAssemblyCategoryGroup), assemblyCategoryGroup))
- {
- throw new InvalidEnumArgumentException(nameof(assemblyCategoryGroup),
- (int) assemblyCategoryGroup,
- typeof(FailureMechanismSectionAssemblyCategoryGroup));
- }
-
- switch (assemblyCategoryGroup)
- {
- case FailureMechanismSectionAssemblyCategoryGroup.Iv:
- return Color.FromArgb(0, 255, 0);
- case FailureMechanismSectionAssemblyCategoryGroup.IIv:
- return Color.FromArgb(118, 147, 60);
- case FailureMechanismSectionAssemblyCategoryGroup.IIIv:
- return Color.FromArgb(255, 255, 0);
- case FailureMechanismSectionAssemblyCategoryGroup.IVv:
- return Color.FromArgb(204, 192, 218);
- case FailureMechanismSectionAssemblyCategoryGroup.Vv:
- return Color.FromArgb(255, 153, 0);
- case FailureMechanismSectionAssemblyCategoryGroup.VIv:
- return Color.FromArgb(255, 0, 0);
- case FailureMechanismSectionAssemblyCategoryGroup.VIIv:
- case FailureMechanismSectionAssemblyCategoryGroup.None:
- case FailureMechanismSectionAssemblyCategoryGroup.NotApplicable:
- return Color.FromArgb(255, 255, 255);
- default:
- throw new NotSupportedException();
- }
- }
-
private static CalculationScenarioStatus GetCalculationStatus(ICalculation calculation,
double detailedAssessmentProbability)
{
Index: Ringtoets/Common/src/Ringtoets.Common.Forms/Ringtoets.Common.Forms.csproj
===================================================================
diff -u -r51d41675feee02c1be1bd0df88b4523b8fef4bb0 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/Common/src/Ringtoets.Common.Forms/Ringtoets.Common.Forms.csproj (.../Ringtoets.Common.Forms.csproj) (revision 51d41675feee02c1be1bd0df88b4523b8fef4bb0)
+++ Ringtoets/Common/src/Ringtoets.Common.Forms/Ringtoets.Common.Forms.csproj (.../Ringtoets.Common.Forms.csproj) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -30,6 +30,7 @@
+
Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Helpers/AssemblyCategoryGroupHelperTest.cs
===================================================================
diff -u
--- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Helpers/AssemblyCategoryGroupHelperTest.cs (revision 0)
+++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Helpers/AssemblyCategoryGroupHelperTest.cs (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -0,0 +1,83 @@
+// 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.ComponentModel;
+using System.Drawing;
+using Core.Common.TestUtil;
+using NUnit.Framework;
+using Ringtoets.AssemblyTool.Data;
+using Ringtoets.Common.Forms.Helpers;
+using Ringtoets.Common.Forms.TestUtil;
+
+namespace Ringtoets.Common.Forms.Test.Helpers
+{
+ [TestFixture]
+ public class AssemblyCategoryGroupHelperTest
+ {
+ [Test]
+ public void GetFailureMechanismSectionAssemblyCategoryGroupColor_WithInvalidFailureMechanismSectionAssemblyCategoryGroup_ThrowsInvalidEnumArgumentException()
+ {
+ // Call
+ TestDelegate test = () => AssemblyCategoryGroupHelper.GetFailureMechanismSectionAssemblyCategoryGroupColor(
+ (FailureMechanismSectionAssemblyCategoryGroup) 99);
+
+ // Assert
+ const string expectedMessage = "The value of argument 'assemblyCategoryGroup' (99) is invalid for Enum type 'FailureMechanismSectionAssemblyCategoryGroup'.";
+ TestHelper.AssertThrowsArgumentExceptionAndTestMessage(test, expectedMessage);
+ }
+
+ [Test]
+ [TestCaseSource(typeof(AssemblyCategoryColorTestHelper), nameof(AssemblyCategoryColorTestHelper.FailureMechanismSectionAssemblyCategoryGroupColorCases))]
+ public void GetFailureMechanismSectionAssemblyCategoryGroupColor_WithFailureMechanismSectionAssemblyCategoryGroup_ReturnsExpectedColor(
+ FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup, Color expectedColor)
+ {
+ // Call
+ Color color = AssemblyCategoryGroupHelper.GetFailureMechanismSectionAssemblyCategoryGroupColor(assemblyCategoryGroup);
+
+ // Assert
+ Assert.AreEqual(expectedColor, color);
+ }
+
+ [Test]
+ public void GetAssessmentSectionAssemblyCategoryGroupColor_WithInvalidFailureMechanismSectionAssemblyCategoryGroup_ThrowsInvalidEnumArgumentException()
+ {
+ // Call
+ TestDelegate test = () => AssemblyCategoryGroupHelper.GetAssessmentSectionAssemblyCategoryGroupColor(
+ (AssessmentSectionAssemblyCategoryGroup) 99);
+
+ // Assert
+ const string expectedMessage = "The value of argument 'assemblyCategoryGroup' (99) is invalid for Enum type 'AssessmentSectionAssemblyCategoryGroup'.";
+ TestHelper.AssertThrowsArgumentExceptionAndTestMessage(test, expectedMessage);
+ }
+
+ [Test]
+ [TestCaseSource(typeof(AssemblyCategoryColorTestHelper), nameof(AssemblyCategoryColorTestHelper.AssessmentSectionAssemblyCategoryGroupColorCases))]
+ public void GetAssessmentSectionAssemblyCategoryGroupColor_WithAssessmentSectionAssemblyCategoryGroup_ReturnsExpectedColor(
+ AssessmentSectionAssemblyCategoryGroup assemblyCategoryGroup, Color expectedColor)
+ {
+ // Call
+ Color color = AssemblyCategoryGroupHelper.GetAssessmentSectionAssemblyCategoryGroupColor(assemblyCategoryGroup);
+
+ // Assert
+ Assert.AreEqual(expectedColor, color);
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Helpers/FailureMechanismSectionResultRowHelperTest.cs
===================================================================
diff -u -re3f913fddac4cfa598ef5439ce6b832f354d7dd8 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Helpers/FailureMechanismSectionResultRowHelperTest.cs (.../FailureMechanismSectionResultRowHelperTest.cs) (revision e3f913fddac4cfa598ef5439ce6b832f354d7dd8)
+++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Helpers/FailureMechanismSectionResultRowHelperTest.cs (.../FailureMechanismSectionResultRowHelperTest.cs) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -160,7 +160,7 @@
}
[Test]
- [TestCaseSource(typeof(FailureMechanismSectionResultRowTestHelper), nameof(FailureMechanismSectionResultRowTestHelper.CategoryGroupColorCases))]
+ [TestCaseSource(typeof(AssemblyCategoryColorTestHelper), nameof(AssemblyCategoryColorTestHelper.FailureMechanismSectionAssemblyCategoryGroupColorCases))]
public void SetAssemblyCategoryGroupStyle_WithFailureMechanismSectionAssemblyCategoryGroup_UpdatesColumnStyle(
FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup, Color expectedColor)
{
Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Ringtoets.Common.Forms.Test.csproj
===================================================================
diff -u -r51d41675feee02c1be1bd0df88b4523b8fef4bb0 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Ringtoets.Common.Forms.Test.csproj (.../Ringtoets.Common.Forms.Test.csproj) (revision 51d41675feee02c1be1bd0df88b4523b8fef4bb0)
+++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Ringtoets.Common.Forms.Test.csproj (.../Ringtoets.Common.Forms.Test.csproj) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -54,6 +54,7 @@
+
Index: Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil.Test/AssemblyCategoryGroupTestHelperTest.cs
===================================================================
diff -u
--- Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil.Test/AssemblyCategoryGroupTestHelperTest.cs (revision 0)
+++ Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil.Test/AssemblyCategoryGroupTestHelperTest.cs (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -0,0 +1,85 @@
+// 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.Collections.Generic;
+using System.Drawing;
+using System.Linq;
+using NUnit.Framework;
+using Ringtoets.AssemblyTool.Data;
+
+namespace Ringtoets.Common.Forms.TestUtil.Test
+{
+ [TestFixture]
+ public class AssemblyCategoryGroupTestHelperTest
+ {
+ [Test]
+ public void FailureMechanismSectionAssemblyCategoryGroupColorCases_Always_ReturnsExpectedCases()
+ {
+ // Call
+ IEnumerable colorCases = AssemblyCategoryColorTestHelper.FailureMechanismSectionAssemblyCategoryGroupColorCases.ToArray();
+
+ // Assert
+ var expectedCases = new[]
+ {
+ new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.NotApplicable, Color.FromArgb(255, 255, 255)),
+ new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.None, Color.FromArgb(255, 255, 255)),
+ new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.Iv, Color.FromArgb(0, 255, 0)),
+ new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.IIv, Color.FromArgb(118, 147, 60)),
+ new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.IIIv, Color.FromArgb(255, 255, 0)),
+ new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.IVv, Color.FromArgb(204, 192, 218)),
+ new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.Vv, Color.FromArgb(255, 153, 0)),
+ new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.VIv, Color.FromArgb(255, 0, 0)),
+ new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.VIIv, Color.FromArgb(255, 255, 255))
+ };
+
+ Assert.AreEqual(expectedCases.Length, colorCases.Count());
+ for (var i = 0; i < colorCases.Count(); i++)
+ {
+ Assert.AreEqual(expectedCases[i].Arguments[0], colorCases.ElementAt(i).Arguments[0]);
+ Assert.AreEqual(expectedCases[i].Arguments[1], colorCases.ElementAt(i).Arguments[1]);
+ }
+ }
+
+ [Test]
+ public void AssessmentSectionAssemblyCategoryGroupColorCases_Always_ReturnsExpectedCases()
+ {
+ // Call
+ IEnumerable colorCases = AssemblyCategoryColorTestHelper.AssessmentSectionAssemblyCategoryGroupColorCases.ToArray();
+
+ // Assert
+ var expectedCases = new[]
+ {
+ new TestCaseData(AssessmentSectionAssemblyCategoryGroup.APlus, Color.FromArgb(0, 255, 0)),
+ new TestCaseData(AssessmentSectionAssemblyCategoryGroup.A, Color.FromArgb(118, 147, 60)),
+ new TestCaseData(AssessmentSectionAssemblyCategoryGroup.B, Color.FromArgb(255, 255, 0)),
+ new TestCaseData(AssessmentSectionAssemblyCategoryGroup.C, Color.FromArgb(255, 153, 0)),
+ new TestCaseData(AssessmentSectionAssemblyCategoryGroup.D, Color.FromArgb(255, 0, 0))
+ };
+
+ Assert.AreEqual(expectedCases.Length, colorCases.Count());
+ for (var i = 0; i < colorCases.Count(); i++)
+ {
+ Assert.AreEqual(expectedCases[i].Arguments[0], colorCases.ElementAt(i).Arguments[0]);
+ Assert.AreEqual(expectedCases[i].Arguments[1], colorCases.ElementAt(i).Arguments[1]);
+ }
+ }
+ }
+}
\ No newline at end of file
Fisheye: Tag 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f refers to a dead (removed) revision in file `Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil.Test/FailureMechanismSectionResultRowTestHelperTest.cs'.
Fisheye: No comparison available. Pass `N' to diff?
Index: Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil.Test/Ringtoets.Common.Forms.TestUtil.Test.csproj
===================================================================
diff -u -reafd42ded45d3c8c39100bc5318562f734af0302 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil.Test/Ringtoets.Common.Forms.TestUtil.Test.csproj (.../Ringtoets.Common.Forms.TestUtil.Test.csproj) (revision eafd42ded45d3c8c39100bc5318562f734af0302)
+++ Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil.Test/Ringtoets.Common.Forms.TestUtil.Test.csproj (.../Ringtoets.Common.Forms.TestUtil.Test.csproj) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -17,7 +17,7 @@
-
+
Index: Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil/AssemblyCategoryColorTestHelper.cs
===================================================================
diff -u
--- Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil/AssemblyCategoryColorTestHelper.cs (revision 0)
+++ Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil/AssemblyCategoryColorTestHelper.cs (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -0,0 +1,70 @@
+// 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.Collections.Generic;
+using System.Drawing;
+using NUnit.Framework;
+using Ringtoets.AssemblyTool.Data;
+
+namespace Ringtoets.Common.Forms.TestUtil
+{
+ ///
+ /// Class that can be used to assert the color corresponding to assembly category groups.
+ ///
+ public static class AssemblyCategoryColorTestHelper
+ {
+ ///
+ /// Gets a collection of test cases to test the colors belonging to various
+ /// values.
+ ///
+ public static IEnumerable FailureMechanismSectionAssemblyCategoryGroupColorCases
+ {
+ get
+ {
+ yield return new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.NotApplicable, Color.FromArgb(255, 255, 255));
+ yield return new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.None, Color.FromArgb(255, 255, 255));
+ yield return new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.Iv, Color.FromArgb(0, 255, 0));
+ yield return new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.IIv, Color.FromArgb(118, 147, 60));
+ yield return new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.IIIv, Color.FromArgb(255, 255, 0));
+ yield return new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.IVv, Color.FromArgb(204, 192, 218));
+ yield return new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.Vv, Color.FromArgb(255, 153, 0));
+ yield return new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.VIv, Color.FromArgb(255, 0, 0));
+ yield return new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.VIIv, Color.FromArgb(255, 255, 255));
+ }
+ }
+
+ ///
+ /// Gets a collection of test cases to test the colors belonging to various
+ /// values.
+ ///
+ public static IEnumerable AssessmentSectionAssemblyCategoryGroupColorCases
+ {
+ get
+ {
+ yield return new TestCaseData(AssessmentSectionAssemblyCategoryGroup.APlus, Color.FromArgb(0, 255, 0));
+ yield return new TestCaseData(AssessmentSectionAssemblyCategoryGroup.A, Color.FromArgb(118, 147, 60));
+ yield return new TestCaseData(AssessmentSectionAssemblyCategoryGroup.B, Color.FromArgb(255, 255, 0));
+ yield return new TestCaseData(AssessmentSectionAssemblyCategoryGroup.C, Color.FromArgb(255, 153, 0));
+ yield return new TestCaseData(AssessmentSectionAssemblyCategoryGroup.D, Color.FromArgb(255, 0, 0));
+ }
+ }
+ }
+}
\ No newline at end of file
Index: Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil/FailureMechanismSectionResultRowTestHelper.cs
===================================================================
diff -u -raef09ee99c4f929c4cfde47c3ea416ee97f831b8 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil/FailureMechanismSectionResultRowTestHelper.cs (.../FailureMechanismSectionResultRowTestHelper.cs) (revision aef09ee99c4f929c4cfde47c3ea416ee97f831b8)
+++ Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil/FailureMechanismSectionResultRowTestHelper.cs (.../FailureMechanismSectionResultRowTestHelper.cs) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -34,26 +34,6 @@
public static class FailureMechanismSectionResultRowTestHelper
{
///
- /// Gets a collection of test cases to test the colors belonging to various
- /// values.
- ///
- public static IEnumerable CategoryGroupColorCases
- {
- get
- {
- yield return new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.NotApplicable, Color.FromArgb(255, 255, 255));
- yield return new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.None, Color.FromArgb(255, 255, 255));
- yield return new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.Iv, Color.FromArgb(0, 255, 0));
- yield return new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.IIv, Color.FromArgb(118, 147, 60));
- yield return new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.IIIv, Color.FromArgb(255, 255, 0));
- yield return new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.IVv, Color.FromArgb(204, 192, 218));
- yield return new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.Vv, Color.FromArgb(255, 153, 0));
- yield return new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.VIv, Color.FromArgb(255, 0, 0));
- yield return new TestCaseData(FailureMechanismSectionAssemblyCategoryGroup.VIIv, Color.FromArgb(255, 255, 255));
- }
- }
-
- ///
/// Asserts the state of the .
///
/// The
Index: Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil/Ringtoets.Common.Forms.TestUtil.csproj
===================================================================
diff -u -r682dfada6e821a0dd7cf3f6be9a2823eb72d9302 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil/Ringtoets.Common.Forms.TestUtil.csproj (.../Ringtoets.Common.Forms.TestUtil.csproj) (revision 682dfada6e821a0dd7cf3f6be9a2823eb72d9302)
+++ Ringtoets/Common/test/Ringtoets.Common.Forms.TestUtil/Ringtoets.Common.Forms.TestUtil.csproj (.../Ringtoets.Common.Forms.TestUtil.csproj) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -17,6 +17,7 @@
+
Index: Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Forms.Test/Views/DuneErosionSectionResultRowTest.cs
===================================================================
diff -u -r4dbb8c9e658bb02d5f1ff5aaf5dc3b45fc1c47ac -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Forms.Test/Views/DuneErosionSectionResultRowTest.cs (.../DuneErosionSectionResultRowTest.cs) (revision 4dbb8c9e658bb02d5f1ff5aaf5dc3b45fc1c47ac)
+++ Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Forms.Test/Views/DuneErosionSectionResultRowTest.cs (.../DuneErosionSectionResultRowTest.cs) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -418,7 +418,7 @@
}
[Test]
- [TestCaseSource(typeof(FailureMechanismSectionResultRowTestHelper), nameof(FailureMechanismSectionResultRowTestHelper.CategoryGroupColorCases))]
+ [TestCaseSource(typeof(AssemblyCategoryColorTestHelper), nameof(AssemblyCategoryColorTestHelper.FailureMechanismSectionAssemblyCategoryGroupColorCases))]
public void Constructor_WithAssemblyCategoryGroupsSet_ExpectedColumnStates(FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup,
Color expectedBackgroundColor)
{
Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/Views/GrassCoverErosionInwardsFailureMechanismSectionResultRowTest.cs
===================================================================
diff -u -rb0d4029bab38384417896cbb6f3029dba653b475 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/Views/GrassCoverErosionInwardsFailureMechanismSectionResultRowTest.cs (.../GrassCoverErosionInwardsFailureMechanismSectionResultRowTest.cs) (revision b0d4029bab38384417896cbb6f3029dba653b475)
+++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Forms.Test/Views/GrassCoverErosionInwardsFailureMechanismSectionResultRowTest.cs (.../GrassCoverErosionInwardsFailureMechanismSectionResultRowTest.cs) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -588,7 +588,7 @@
}
[Test]
- [TestCaseSource(typeof(FailureMechanismSectionResultRowTestHelper), nameof(FailureMechanismSectionResultRowTestHelper.CategoryGroupColorCases))]
+ [TestCaseSource(typeof(AssemblyCategoryColorTestHelper), nameof(AssemblyCategoryColorTestHelper.FailureMechanismSectionAssemblyCategoryGroupColorCases))]
public void Constructor_WithAssemblyCategoryGroupsSet_ExpectedColumnStates(FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup,
Color expectedBackgroundColor)
{
Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsFailureMechanismSectionResultRowTest.cs
===================================================================
diff -u -r6bfd88d43db177e5425a69c22dfd9070e8520898 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsFailureMechanismSectionResultRowTest.cs (.../GrassCoverErosionOutwardsFailureMechanismSectionResultRowTest.cs) (revision 6bfd88d43db177e5425a69c22dfd9070e8520898)
+++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/Views/GrassCoverErosionOutwardsFailureMechanismSectionResultRowTest.cs (.../GrassCoverErosionOutwardsFailureMechanismSectionResultRowTest.cs) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -407,7 +407,7 @@
}
[Test]
- [TestCaseSource(typeof(FailureMechanismSectionResultRowTestHelper), nameof(FailureMechanismSectionResultRowTestHelper.CategoryGroupColorCases))]
+ [TestCaseSource(typeof(AssemblyCategoryColorTestHelper), nameof(AssemblyCategoryColorTestHelper.FailureMechanismSectionAssemblyCategoryGroupColorCases))]
public void Constructor_WithAssemblyCategoryGroupsSet_ExpectedColumnStates(FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup,
Color expectedBackgroundColor)
{
Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/Views/HeightStructuresFailureMechanismSectionResultRowTest.cs
===================================================================
diff -u -rb0d4029bab38384417896cbb6f3029dba653b475 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/Views/HeightStructuresFailureMechanismSectionResultRowTest.cs (.../HeightStructuresFailureMechanismSectionResultRowTest.cs) (revision b0d4029bab38384417896cbb6f3029dba653b475)
+++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/Views/HeightStructuresFailureMechanismSectionResultRowTest.cs (.../HeightStructuresFailureMechanismSectionResultRowTest.cs) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -588,7 +588,7 @@
}
[Test]
- [TestCaseSource(typeof(FailureMechanismSectionResultRowTestHelper), nameof(FailureMechanismSectionResultRowTestHelper.CategoryGroupColorCases))]
+ [TestCaseSource(typeof(AssemblyCategoryColorTestHelper), nameof(AssemblyCategoryColorTestHelper.FailureMechanismSectionAssemblyCategoryGroupColorCases))]
public void Constructor_WithAssemblyCategoryGroupsSet_ExpectedColumnStates(FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup,
Color expectedBackgroundColor)
{
Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/GrassCoverSlipOffInwardsSectionResultRowTest.cs
===================================================================
diff -u -rb0d4029bab38384417896cbb6f3029dba653b475 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/GrassCoverSlipOffInwardsSectionResultRowTest.cs (.../GrassCoverSlipOffInwardsSectionResultRowTest.cs) (revision b0d4029bab38384417896cbb6f3029dba653b475)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/GrassCoverSlipOffInwardsSectionResultRowTest.cs (.../GrassCoverSlipOffInwardsSectionResultRowTest.cs) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -394,7 +394,7 @@
}
[Test]
- [TestCaseSource(typeof(FailureMechanismSectionResultRowTestHelper), nameof(FailureMechanismSectionResultRowTestHelper.CategoryGroupColorCases))]
+ [TestCaseSource(typeof(AssemblyCategoryColorTestHelper), nameof(AssemblyCategoryColorTestHelper.FailureMechanismSectionAssemblyCategoryGroupColorCases))]
public void Constructor_WithAssemblyCategoryGroupsSet_ExpectedColumnStates(FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup,
Color expectedBackgroundColor)
{
Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/GrassCoverSlipOffOutwardsSectionResultRowTest.cs
===================================================================
diff -u -rb0d4029bab38384417896cbb6f3029dba653b475 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/GrassCoverSlipOffOutwardsSectionResultRowTest.cs (.../GrassCoverSlipOffOutwardsSectionResultRowTest.cs) (revision b0d4029bab38384417896cbb6f3029dba653b475)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/GrassCoverSlipOffOutwardsSectionResultRowTest.cs (.../GrassCoverSlipOffOutwardsSectionResultRowTest.cs) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -393,7 +393,7 @@
}
[Test]
- [TestCaseSource(typeof(FailureMechanismSectionResultRowTestHelper), nameof(FailureMechanismSectionResultRowTestHelper.CategoryGroupColorCases))]
+ [TestCaseSource(typeof(AssemblyCategoryColorTestHelper), nameof(AssemblyCategoryColorTestHelper.FailureMechanismSectionAssemblyCategoryGroupColorCases))]
public void Constructor_WithAssemblyCategoryGroupsSet_ExpectedColumnStates(FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup,
Color expectedBackgroundColor)
{
Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/MacroStabilityOutwardsSectionResultRowTest.cs
===================================================================
diff -u -rb0d4029bab38384417896cbb6f3029dba653b475 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/MacroStabilityOutwardsSectionResultRowTest.cs (.../MacroStabilityOutwardsSectionResultRowTest.cs) (revision b0d4029bab38384417896cbb6f3029dba653b475)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/MacroStabilityOutwardsSectionResultRowTest.cs (.../MacroStabilityOutwardsSectionResultRowTest.cs) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -611,7 +611,7 @@
}
[Test]
- [TestCaseSource(typeof(FailureMechanismSectionResultRowTestHelper), nameof(FailureMechanismSectionResultRowTestHelper.CategoryGroupColorCases))]
+ [TestCaseSource(typeof(AssemblyCategoryColorTestHelper), nameof(AssemblyCategoryColorTestHelper.FailureMechanismSectionAssemblyCategoryGroupColorCases))]
public void Constructor_WithAssemblyCategoryGroupsSet_ExpectedColumnStates(FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup,
Color expectedBackgroundColor)
{
Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/MicrostabilitySectionResultRowTest.cs
===================================================================
diff -u -rb0d4029bab38384417896cbb6f3029dba653b475 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/MicrostabilitySectionResultRowTest.cs (.../MicrostabilitySectionResultRowTest.cs) (revision b0d4029bab38384417896cbb6f3029dba653b475)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/MicrostabilitySectionResultRowTest.cs (.../MicrostabilitySectionResultRowTest.cs) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -394,7 +394,7 @@
}
[Test]
- [TestCaseSource(typeof(FailureMechanismSectionResultRowTestHelper), nameof(FailureMechanismSectionResultRowTestHelper.CategoryGroupColorCases))]
+ [TestCaseSource(typeof(AssemblyCategoryColorTestHelper), nameof(AssemblyCategoryColorTestHelper.FailureMechanismSectionAssemblyCategoryGroupColorCases))]
public void Constructor_WithAssemblyCategoryGroupsSet_ExpectedColumnStates(FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup,
Color expectedBackgroundColor)
{
Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/PipingStructureSectionResultRowTest.cs
===================================================================
diff -u -rb0d4029bab38384417896cbb6f3029dba653b475 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/PipingStructureSectionResultRowTest.cs (.../PipingStructureSectionResultRowTest.cs) (revision b0d4029bab38384417896cbb6f3029dba653b475)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/PipingStructureSectionResultRowTest.cs (.../PipingStructureSectionResultRowTest.cs) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -394,7 +394,7 @@
}
[Test]
- [TestCaseSource(typeof(FailureMechanismSectionResultRowTestHelper), nameof(FailureMechanismSectionResultRowTestHelper.CategoryGroupColorCases))]
+ [TestCaseSource(typeof(AssemblyCategoryColorTestHelper), nameof(AssemblyCategoryColorTestHelper.FailureMechanismSectionAssemblyCategoryGroupColorCases))]
public void Constructor_WithAssemblyCategoryGroupsSet_ExpectedColumnStates(FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup,
Color expectedBackgroundColor)
{
Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/StrengthStabilityLengthwiseConstructionSectionResultRowTest.cs
===================================================================
diff -u -r9b261d1aecde88dc1a0d996a274c040302cca40a -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/StrengthStabilityLengthwiseConstructionSectionResultRowTest.cs (.../StrengthStabilityLengthwiseConstructionSectionResultRowTest.cs) (revision 9b261d1aecde88dc1a0d996a274c040302cca40a)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/StrengthStabilityLengthwiseConstructionSectionResultRowTest.cs (.../StrengthStabilityLengthwiseConstructionSectionResultRowTest.cs) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -373,7 +373,7 @@
}
[Test]
- [TestCaseSource(typeof(FailureMechanismSectionResultRowTestHelper), nameof(FailureMechanismSectionResultRowTestHelper.CategoryGroupColorCases))]
+ [TestCaseSource(typeof(AssemblyCategoryColorTestHelper), nameof(AssemblyCategoryColorTestHelper.FailureMechanismSectionAssemblyCategoryGroupColorCases))]
public void Constructor_WithAssemblyCategoryGroupsSet_ExpectedColumnStates(FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup,
Color expectedBackgroundColor)
{
Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/TechnicalInnovationSectionResultRowTest.cs
===================================================================
diff -u -ra3d3c8428638ea47a37811456d34bb4c59949664 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/TechnicalInnovationSectionResultRowTest.cs (.../TechnicalInnovationSectionResultRowTest.cs) (revision a3d3c8428638ea47a37811456d34bb4c59949664)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/TechnicalInnovationSectionResultRowTest.cs (.../TechnicalInnovationSectionResultRowTest.cs) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -373,7 +373,7 @@
}
[Test]
- [TestCaseSource(typeof(FailureMechanismSectionResultRowTestHelper), nameof(FailureMechanismSectionResultRowTestHelper.CategoryGroupColorCases))]
+ [TestCaseSource(typeof(AssemblyCategoryColorTestHelper), nameof(AssemblyCategoryColorTestHelper.FailureMechanismSectionAssemblyCategoryGroupColorCases))]
public void Constructor_WithAssemblyCategoryGroupsSet_ExpectedColumnStates(FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup,
Color expectedBackgroundColor)
{
Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/WaterPressureAsphaltCoverSectionResultRowTest.cs
===================================================================
diff -u -r0088000f80b5b391eab94e29f8683698546c7441 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/WaterPressureAsphaltCoverSectionResultRowTest.cs (.../WaterPressureAsphaltCoverSectionResultRowTest.cs) (revision 0088000f80b5b391eab94e29f8683698546c7441)
+++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/WaterPressureAsphaltCoverSectionResultRowTest.cs (.../WaterPressureAsphaltCoverSectionResultRowTest.cs) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -373,7 +373,7 @@
}
[Test]
- [TestCaseSource(typeof(FailureMechanismSectionResultRowTestHelper), nameof(FailureMechanismSectionResultRowTestHelper.CategoryGroupColorCases))]
+ [TestCaseSource(typeof(AssemblyCategoryColorTestHelper), nameof(AssemblyCategoryColorTestHelper.FailureMechanismSectionAssemblyCategoryGroupColorCases))]
public void Constructor_WithAssemblyCategoryGroupsSet_ExpectedColumnStates(FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup,
Color expectedBackgroundColor)
{
Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/Views/MacroStabilityInwardsFailureMechanismSectionResultRowTest.cs
===================================================================
diff -u -r69ddce7a597011b6a146facf2a9e557b2fb2c133 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/Views/MacroStabilityInwardsFailureMechanismSectionResultRowTest.cs (.../MacroStabilityInwardsFailureMechanismSectionResultRowTest.cs) (revision 69ddce7a597011b6a146facf2a9e557b2fb2c133)
+++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/Views/MacroStabilityInwardsFailureMechanismSectionResultRowTest.cs (.../MacroStabilityInwardsFailureMechanismSectionResultRowTest.cs) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -683,7 +683,7 @@
}
[Test]
- [TestCaseSource(typeof(FailureMechanismSectionResultRowTestHelper), nameof(FailureMechanismSectionResultRowTestHelper.CategoryGroupColorCases))]
+ [TestCaseSource(typeof(AssemblyCategoryColorTestHelper), nameof(AssemblyCategoryColorTestHelper.FailureMechanismSectionAssemblyCategoryGroupColorCases))]
public void Constructor_WithAssemblyCategoryGroupsSet_ExpectedColumnStates(FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup,
Color expectedBackgroundColor)
{
Index: Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/Views/PipingFailureMechanismSectionResultRowTest.cs
===================================================================
diff -u -r69ddce7a597011b6a146facf2a9e557b2fb2c133 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/Views/PipingFailureMechanismSectionResultRowTest.cs (.../PipingFailureMechanismSectionResultRowTest.cs) (revision 69ddce7a597011b6a146facf2a9e557b2fb2c133)
+++ Ringtoets/Piping/test/Ringtoets.Piping.Forms.Test/Views/PipingFailureMechanismSectionResultRowTest.cs (.../PipingFailureMechanismSectionResultRowTest.cs) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -683,7 +683,7 @@
}
[Test]
- [TestCaseSource(typeof(FailureMechanismSectionResultRowTestHelper), nameof(FailureMechanismSectionResultRowTestHelper.CategoryGroupColorCases))]
+ [TestCaseSource(typeof(AssemblyCategoryColorTestHelper), nameof(AssemblyCategoryColorTestHelper.FailureMechanismSectionAssemblyCategoryGroupColorCases))]
public void Constructor_WithAssemblyCategoryGroupsSet_ExpectedColumnStates(FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup,
Color expectedBackgroundColor)
{
Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/Views/StabilityPointStructuresFailureMechanismSectionResultRowTest.cs
===================================================================
diff -u -raef09ee99c4f929c4cfde47c3ea416ee97f831b8 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/Views/StabilityPointStructuresFailureMechanismSectionResultRowTest.cs (.../StabilityPointStructuresFailureMechanismSectionResultRowTest.cs) (revision aef09ee99c4f929c4cfde47c3ea416ee97f831b8)
+++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/Views/StabilityPointStructuresFailureMechanismSectionResultRowTest.cs (.../StabilityPointStructuresFailureMechanismSectionResultRowTest.cs) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -631,7 +631,7 @@
}
[Test]
- [TestCaseSource(typeof(FailureMechanismSectionResultRowTestHelper), nameof(FailureMechanismSectionResultRowTestHelper.CategoryGroupColorCases))]
+ [TestCaseSource(typeof(AssemblyCategoryColorTestHelper), nameof(AssemblyCategoryColorTestHelper.FailureMechanismSectionAssemblyCategoryGroupColorCases))]
public void Constructor_WithAssemblyCategoryGroupsSet_ExpectedColumnStates(FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup,
Color expectedBackgroundColor)
{
Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/Views/StabilityStoneCoverSectionResultRowTest.cs
===================================================================
diff -u -r7150f912536e96fc66e4c0fb549eb07ae097d4c2 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/Views/StabilityStoneCoverSectionResultRowTest.cs (.../StabilityStoneCoverSectionResultRowTest.cs) (revision 7150f912536e96fc66e4c0fb549eb07ae097d4c2)
+++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Forms.Test/Views/StabilityStoneCoverSectionResultRowTest.cs (.../StabilityStoneCoverSectionResultRowTest.cs) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -421,7 +421,7 @@
}
[Test]
- [TestCaseSource(typeof(FailureMechanismSectionResultRowTestHelper), nameof(FailureMechanismSectionResultRowTestHelper.CategoryGroupColorCases))]
+ [TestCaseSource(typeof(AssemblyCategoryColorTestHelper), nameof(AssemblyCategoryColorTestHelper.FailureMechanismSectionAssemblyCategoryGroupColorCases))]
public void Constructor_WithAssemblyCategoryGroupsSet_ExpectedColumnStates(FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup,
Color expectedBackgroundColor)
{
Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/Views/WaveImpactAsphaltCoverFailureMechanismSectionResultRowTest.cs
===================================================================
diff -u -r7150f912536e96fc66e4c0fb549eb07ae097d4c2 -r6e0c3a3eec9feb30d964df279e76f2a8e6ae278f
--- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/Views/WaveImpactAsphaltCoverFailureMechanismSectionResultRowTest.cs (.../WaveImpactAsphaltCoverFailureMechanismSectionResultRowTest.cs) (revision 7150f912536e96fc66e4c0fb549eb07ae097d4c2)
+++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Forms.Test/Views/WaveImpactAsphaltCoverFailureMechanismSectionResultRowTest.cs (.../WaveImpactAsphaltCoverFailureMechanismSectionResultRowTest.cs) (revision 6e0c3a3eec9feb30d964df279e76f2a8e6ae278f)
@@ -422,7 +422,7 @@
}
[Test]
- [TestCaseSource(typeof(FailureMechanismSectionResultRowTestHelper), nameof(FailureMechanismSectionResultRowTestHelper.CategoryGroupColorCases))]
+ [TestCaseSource(typeof(AssemblyCategoryColorTestHelper), nameof(AssemblyCategoryColorTestHelper.FailureMechanismSectionAssemblyCategoryGroupColorCases))]
public void Constructor_WithAssemblyCategoryGroupsSet_ExpectedColumnStates(FailureMechanismSectionAssemblyCategoryGroup assemblyCategoryGroup,
Color expectedBackgroundColor)
{