Index: Ringtoets.sln =================================================================== diff -u -r61e2c682b560d3a0a0a37b87a618897f42b6ba39 -r80a9b97c1fdb7c9083f35d8f0b9352e8b0d65756 --- Ringtoets.sln (.../Ringtoets.sln) (revision 61e2c682b560d3a0a0a37b87a618897f42b6ba39) +++ Ringtoets.sln (.../Ringtoets.sln) (revision 80a9b97c1fdb7c9083f35d8f0b9352e8b0d65756) @@ -1830,7 +1830,7 @@ {C90B77DA-E421-43CC-B82E-529651BC21AC} = {C90B77DA-E421-43CC-B82E-529651BC21AC} EndProjectSection EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Riskeer.AssemblyTool.Data.TestUtil", "Ringtoets\AssemblyTool\test\Ringtoets.AssemblyTool.Data.TestUtil\Riskeer.AssemblyTool.Data.TestUtil.csproj", "{C6EE9E6A-6578-49DF-914F-CDB531E61891}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Riskeer.AssemblyTool.Data.TestUtil", "Ringtoets\AssemblyTool\test\Riskeer.AssemblyTool.Data.TestUtil\Riskeer.AssemblyTool.Data.TestUtil.csproj", "{C6EE9E6A-6578-49DF-914F-CDB531E61891}" ProjectSection(ProjectDependencies) = postProject {C90B77DA-E421-43CC-B82E-529651BC21AC} = {C90B77DA-E421-43CC-B82E-529651BC21AC} EndProjectSection Fisheye: Tag 80a9b97c1fdb7c9083f35d8f0b9352e8b0d65756 refers to a dead (removed) revision in file `Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.TestUtil/AssemblyToolTestHelper.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 80a9b97c1fdb7c9083f35d8f0b9352e8b0d65756 refers to a dead (removed) revision in file `Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.TestUtil/Properties/AssemblyInfo.cs'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 80a9b97c1fdb7c9083f35d8f0b9352e8b0d65756 refers to a dead (removed) revision in file `Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.TestUtil/Riskeer.AssemblyTool.Data.TestUtil.csproj'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 80a9b97c1fdb7c9083f35d8f0b9352e8b0d65756 refers to a dead (removed) revision in file `Ringtoets/AssemblyTool/test/Ringtoets.AssemblyTool.Data.TestUtil/packages.config'. Fisheye: No comparison available. Pass `N' to diff? Index: Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.TestUtil/AssemblyToolTestHelper.cs =================================================================== diff -u --- Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.TestUtil/AssemblyToolTestHelper.cs (revision 0) +++ Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.TestUtil/AssemblyToolTestHelper.cs (revision 80a9b97c1fdb7c9083f35d8f0b9352e8b0d65756) @@ -0,0 +1,59 @@ +// Copyright (C) Stichting Deltares 2018. 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 NUnit.Framework; + +namespace Riskeer.AssemblyTool.Data.TestUtil +{ + /// + /// Helper class to test assembly tool data objects. + /// + public static class AssemblyToolTestHelper + { + /// + /// Asserts that two are equal. + /// + /// The expected assembly. + /// The actual assembly. + /// Thrown when is not + /// equal to . + public static void AssertAreEqual(FailureMechanismSectionAssembly expectedSectionAssembly, + FailureMechanismSectionAssembly actualSectionAssembly) + { + Assert.AreEqual(expectedSectionAssembly.Group, actualSectionAssembly.Group); + Assert.AreEqual(expectedSectionAssembly.Probability, actualSectionAssembly.Probability); + } + + /// + /// Asserts that two are equal. + /// + /// The expected assembly. + /// The actual assembly. + /// Thrown when is not + /// equal to . + public static void AssertAreEqual(FailureMechanismAssembly expectedAssembly, + FailureMechanismAssembly actualAssembly) + { + Assert.AreEqual(expectedAssembly.Group, actualAssembly.Group); + Assert.AreEqual(expectedAssembly.Probability, actualAssembly.Probability); + } + } +} \ No newline at end of file Index: Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.TestUtil/Properties/AssemblyInfo.cs =================================================================== diff -u --- Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.TestUtil/Properties/AssemblyInfo.cs (revision 0) +++ Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.TestUtil/Properties/AssemblyInfo.cs (revision 80a9b97c1fdb7c9083f35d8f0b9352e8b0d65756) @@ -0,0 +1,25 @@ +// Copyright (C) Stichting Deltares 2018. 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.Reflection; + +[assembly: AssemblyTitle("Riskeer.AssemblyTool.Data.TestUtil")] +[assembly: AssemblyProduct("Riskeer.AssemblyTool.Data.TestUtil")] \ No newline at end of file Index: Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.TestUtil/Riskeer.AssemblyTool.Data.TestUtil.csproj =================================================================== diff -u --- Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.TestUtil/Riskeer.AssemblyTool.Data.TestUtil.csproj (revision 0) +++ Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.TestUtil/Riskeer.AssemblyTool.Data.TestUtil.csproj (revision 80a9b97c1fdb7c9083f35d8f0b9352e8b0d65756) @@ -0,0 +1,31 @@ + + + + {C6EE9E6A-6578-49DF-914F-CDB531E61891} + Riskeer.AssemblyTool.Data.TestUtil + Riskeer.AssemblyTool.Data.TestUtil + + + + + ..\..\..\..\packages\NUnit.3.8.1\lib\net40\nunit.framework.dll + + + + + + + + + + + {420ED9C3-0C33-47EA-B893-121A9C0DB4F1} + Riskeer.AssemblyTool.Data + + + + + Copying.licenseheader + + + \ No newline at end of file Index: Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.TestUtil/packages.config =================================================================== diff -u --- Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.TestUtil/packages.config (revision 0) +++ Ringtoets/AssemblyTool/test/Riskeer.AssemblyTool.Data.TestUtil/packages.config (revision 80a9b97c1fdb7c9083f35d8f0b9352e8b0d65756) @@ -0,0 +1,4 @@ + + + + \ No newline at end of file