Index: Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.KernelWrapper/Calculators/Assembly/AssessmentSectionAssemblyCalculator.cs =================================================================== diff -u -r3449f574e011603ca159ccef3d2164ed3c0fd4ff -r9bb4effb0bbb67ac58342e08f78e3e8398e05bb8 --- Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.KernelWrapper/Calculators/Assembly/AssessmentSectionAssemblyCalculator.cs (.../AssessmentSectionAssemblyCalculator.cs) (revision 3449f574e011603ca159ccef3d2164ed3c0fd4ff) +++ Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.KernelWrapper/Calculators/Assembly/AssessmentSectionAssemblyCalculator.cs (.../AssessmentSectionAssemblyCalculator.cs) (revision 9bb4effb0bbb67ac58342e08f78e3e8398e05bb8) @@ -91,6 +91,11 @@ public IEnumerable AssembleCombinedFailureMechanismSections( IEnumerable> input, double assessmentSectionLength) { + if (input == null) + { + throw new ArgumentNullException(nameof(input)); + } + try { ICommonFailureMechanismSectionAssembler kernel = factory.CreateCombinedFailureMechanismSectionAssemblyKernel(); Index: Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.KernelWrapper/Calculators/Assembly/IAssessmentSectionAssemblyCalculator.cs =================================================================== diff -u -r882667e55a3e77e2679551c744688950eab842b7 -r9bb4effb0bbb67ac58342e08f78e3e8398e05bb8 --- Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.KernelWrapper/Calculators/Assembly/IAssessmentSectionAssemblyCalculator.cs (.../IAssessmentSectionAssemblyCalculator.cs) (revision 882667e55a3e77e2679551c744688950eab842b7) +++ Riskeer/AssemblyTool/src/Riskeer.AssemblyTool.KernelWrapper/Calculators/Assembly/IAssessmentSectionAssemblyCalculator.cs (.../IAssessmentSectionAssemblyCalculator.cs) (revision 9bb4effb0bbb67ac58342e08f78e3e8398e05bb8) @@ -50,6 +50,7 @@ /// The collection of failure mechanism section collections to assemble for. /// The length of the assessment section. /// A collection of . + /// Thrown when is null. /// Thrown when /// an error occurs while assembling. IEnumerable AssembleCombinedFailureMechanismSections( Index: Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.KernelWrapper.Test/Calculators/Assembly/AssessmentSectionAssemblyCalculatorTest.cs =================================================================== diff -u -r3449f574e011603ca159ccef3d2164ed3c0fd4ff -r9bb4effb0bbb67ac58342e08f78e3e8398e05bb8 --- Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.KernelWrapper.Test/Calculators/Assembly/AssessmentSectionAssemblyCalculatorTest.cs (.../AssessmentSectionAssemblyCalculatorTest.cs) (revision 3449f574e011603ca159ccef3d2164ed3c0fd4ff) +++ Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.KernelWrapper.Test/Calculators/Assembly/AssessmentSectionAssemblyCalculatorTest.cs (.../AssessmentSectionAssemblyCalculatorTest.cs) (revision 9bb4effb0bbb67ac58342e08f78e3e8398e05bb8) @@ -251,6 +251,24 @@ } [Test] + public void AssembleCombinedFailureMechanismSections_InputNull_ThrowsArgumentNullException() + { + // Setup + var mocks = new MockRepository(); + var kernelFactory = mocks.Stub(); + mocks.ReplayAll(); + + var calculator = new AssessmentSectionAssemblyCalculator(kernelFactory); + + // Call + void Call() => calculator.AssembleCombinedFailureMechanismSections(null, double.NaN); + + // Assert + var exception = Assert.Throws(Call); + Assert.AreEqual("input", exception.ParamName); + } + + [Test] public void AssembleCombinedFailureMechanismSections_WithInvalidInput_ThrowsAssessmentSectionAssemblyCalculatorException() { // Setup Index: Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.KernelWrapper.Test/Calculators/AssemblyToolCalculatorFactoryTest.cs =================================================================== diff -u -r00190b5745e366cf2b9977d53401f8182555fe13 -r9bb4effb0bbb67ac58342e08f78e3e8398e05bb8 --- Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.KernelWrapper.Test/Calculators/AssemblyToolCalculatorFactoryTest.cs (.../AssemblyToolCalculatorFactoryTest.cs) (revision 00190b5745e366cf2b9977d53401f8182555fe13) +++ Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.KernelWrapper.Test/Calculators/AssemblyToolCalculatorFactoryTest.cs (.../AssemblyToolCalculatorFactoryTest.cs) (revision 9bb4effb0bbb67ac58342e08f78e3e8398e05bb8) @@ -126,7 +126,7 @@ } [Test] - public void CreateAssessmentSectionAssemblyCalculator_WithKernelFactory_Returns() + public void CreateAssessmentSectionAssemblyCalculator_WithKernelFactory_ReturnsAssessmentSectionAssemblyCalculator() { // Setup IAssemblyToolCalculatorFactory factory = AssemblyToolCalculatorFactory.Instance; Index: Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.KernelWrapper.TestUtil/CombinedFailureMechanismSectionsInputAssert.cs =================================================================== diff -u -r20abc90c18fc18a42be226f6104ebf17f3d3756a -r9bb4effb0bbb67ac58342e08f78e3e8398e05bb8 --- Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.KernelWrapper.TestUtil/CombinedFailureMechanismSectionsInputAssert.cs (.../CombinedFailureMechanismSectionsInputAssert.cs) (revision 20abc90c18fc18a42be226f6104ebf17f3d3756a) +++ Riskeer/AssemblyTool/test/Riskeer.AssemblyTool.KernelWrapper.TestUtil/CombinedFailureMechanismSectionsInputAssert.cs (.../CombinedFailureMechanismSectionsInputAssert.cs) (revision 9bb4effb0bbb67ac58342e08f78e3e8398e05bb8) @@ -38,7 +38,7 @@ /// /// The original collection of /// collections. - /// The actual collection of . + /// The actual collection of . /// Thrown when /// is not equal to . public static void AssertCombinedFailureMechanismInput(IEnumerable original, IEnumerable actual) Index: Riskeer/Common/src/Riskeer.Common.Data/AssemblyTool/AssemblyToolHelper.cs =================================================================== diff -u -rc975510c82744319cf957dc0018d7abb847ae95b -r9bb4effb0bbb67ac58342e08f78e3e8398e05bb8 --- Riskeer/Common/src/Riskeer.Common.Data/AssemblyTool/AssemblyToolHelper.cs (.../AssemblyToolHelper.cs) (revision c975510c82744319cf957dc0018d7abb847ae95b) +++ Riskeer/Common/src/Riskeer.Common.Data/AssemblyTool/AssemblyToolHelper.cs (.../AssemblyToolHelper.cs) (revision 9bb4effb0bbb67ac58342e08f78e3e8398e05bb8) @@ -68,13 +68,13 @@ } /// - /// Assembles the failure path. + /// Assembles the failure mechanism. /// /// The failure mechanism to assemble. /// The to perform the failure mechanism section assembly. /// The n value of the . /// The type of section result. - /// The failure path probability. + /// The failure mechanism probability. /// Thrown when /// or is null. /// Thrown when the failure mechanism could not be successfully assembled.