using NUnit.Framework;
using Ringtoets.AssemblyTool.Data;
using Ringtoets.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.
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.
public static void AssertExportableSectionAssemblyResult(FailureMechanismSectionAssemblyCategoryGroup assemblyResult,
ExportableAssemblyMethod assemblyMethod,
ExportableSectionAssemblyResult exportableSectionAssemblyResult)
{
Assert.AreEqual(assemblyMethod, exportableSectionAssemblyResult.AssemblyMethod);
Assert.AreEqual(assemblyResult, exportableSectionAssemblyResult.AssemblyCategory);
}
}
}