/// <summary>
 /// Constructor of the FailureMechanismAssemblyResult class
 /// </summary>
 public FailureMechanismAssemblyResult(Probability probability, EFailureMechanismAssemblyMethod mechanismAssemblyMethod)
 {
     Probability    = probability;
     AssemblyMethod = mechanismAssemblyMethod;
 }
        public void Wbi1B1FailureProbabilityTests(Tuple <Probability, Probability, EInterpretationCategory>[] failureProbabilities, bool partialAssembly, Probability expectedResult, EFailureMechanismAssemblyMethod expectedMethod)
        {
            // Use correct probabilities
            var result = assembler.AssembleFailureMechanismWbi1B1(lengthEffectFactor1,
                                                                  failureProbabilities.Select(sectionResultTuple =>
                                                                                              new
                                                                                              FailureMechanismSectionAssemblyResult(
                                                                                                  sectionResultTuple.Item1, sectionResultTuple.Item2, sectionResultTuple.Item3)),
                                                                  partialAssembly);

            Assert.NotNull(result);
            Assert.AreEqual(expectedMethod, result.AssemblyMethod);
            Assert.AreEqual(expectedResult, result.Probability, 1e-10);
        }