// 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; using Riskeer.AssemblyTool.Data; using Riskeer.Integration.IO.Assembly; namespace Ringtoets.Integration.IO.TestUtil { /// /// Helper class to assert . /// public static class ExportableSectionAssemblyResultTestHelper { /// /// Asserts an /// against the assembly result and the method which was used to generate the result. /// /// The expected . /// The which was /// used to generate the result. /// The to assert. /// Thrown when: /// /// The values between and /// do not match. /// The does not match. /// public static void AssertExportableSectionAssemblyResult(FailureMechanismSectionAssembly assemblyResult, ExportableAssemblyMethod assemblyMethod, ExportableSectionAssemblyResultWithProbability exportableSectionAssemblyResult) { AssertExportableSectionAssemblyResult(assemblyResult.Group, assemblyMethod, exportableSectionAssemblyResult); Assert.AreEqual(assemblyResult.Probability, exportableSectionAssemblyResult.Probability); } /// /// Asserts an /// against the assembly result and the method which was used to generate the result. /// /// The expected . /// The which was /// used to generate the result. /// The to assert. /// Thrown when: /// /// The values between and /// do not match. /// The does not match. /// public static void AssertExportableSectionAssemblyResult(FailureMechanismSectionAssemblyCategoryGroup assemblyResult, ExportableAssemblyMethod assemblyMethod, ExportableSectionAssemblyResult exportableSectionAssemblyResult) { Assert.AreEqual(assemblyMethod, exportableSectionAssemblyResult.AssemblyMethod); Assert.AreEqual(assemblyResult, exportableSectionAssemblyResult.AssemblyCategory); } } }