Index: Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableFailureMechanismCombinedSectionAssemblyResultTest.cs =================================================================== diff -u -r6db3f84335e15d1baac7829c7f10d44d5bae08b7 -rd2716e03975b67c298f626178f7ba9cf6d99b07b --- Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableFailureMechanismCombinedSectionAssemblyResultTest.cs (.../ExportableFailureMechanismCombinedSectionAssemblyResultTest.cs) (revision 6db3f84335e15d1baac7829c7f10d44d5bae08b7) +++ Ringtoets/Integration/test/Ringtoets.Integration.IO.Test/Assembly/ExportableFailureMechanismCombinedSectionAssemblyResultTest.cs (.../ExportableFailureMechanismCombinedSectionAssemblyResultTest.cs) (revision d2716e03975b67c298f626178f7ba9cf6d99b07b) @@ -1,16 +1,16 @@ using System; using Core.Common.TestUtil; using NUnit.Framework; -using Ringtoets.AssemblyTool.Data; using Ringtoets.Integration.IO.Assembly; +using Ringtoets.Integration.IO.TestUtil; namespace Ringtoets.Integration.IO.Test.Assembly { [TestFixture] public class ExportableFailureMechanismCombinedSectionAssemblyResultTest { [Test] - public void Constructor_CombinedSectionAssemblyNull_ThrowsArgumentNullException() + public void Constructor_SectionAssemblyResultNull_ThrowsArgumentNullException() { // Setup var random = new Random(21); @@ -21,7 +21,7 @@ // Assert var exception = Assert.Throws(call); - Assert.AreEqual("combinedSectionAssembly", exception.ParamName); + Assert.AreEqual("sectionAssemblyResult", exception.ParamName); } [Test] @@ -30,21 +30,14 @@ // Setup var random = new Random(21); var code = random.NextEnumValue(); - ExportableFailureMechanismAssemblyResult combinedSectionAssembly = CreateFailureMechanismAssemblyResult(); + ExportableSectionAssemblyResult combinedSectionAssembly = ExportableSectionAssemblyResultTestFactory.CreateSectionAssemblyResult(); // Call var assemblyResult = new ExportableFailureMechanismCombinedSectionAssemblyResult(combinedSectionAssembly, code); // Assert - Assert.AreSame(combinedSectionAssembly, assemblyResult.CombinedSectionAssembly); + Assert.AreSame(combinedSectionAssembly, assemblyResult.SectionAssemblyResult); Assert.AreEqual(code, assemblyResult.Code); } - - private static ExportableFailureMechanismAssemblyResult CreateFailureMechanismAssemblyResult() - { - var random = new Random(21); - return new ExportableFailureMechanismAssemblyResult(random.NextEnumValue(), - random.NextEnumValue()); - } } } \ No newline at end of file