Beispiel #1
0
        public void ClearIllustrationPoints_OutputWithoutGeneralResult_OtherOutputIsNotAffected()
        {
            // Setup
            var    random      = new Random(39);
            double reliability = random.NextDouble();

            var structuresOutput = new StructuresOutput(reliability, null);

            // Call
            structuresOutput.ClearIllustrationPoints();

            // Assert
            Assert.AreEqual(reliability, structuresOutput.Reliability);
            Assert.IsFalse(structuresOutput.HasGeneralResult);
            Assert.IsNull(structuresOutput.GeneralResult);
        }
Beispiel #2
0
        public void ClearIllustrationPoints_OutputWithGeneralResult_ClearsGeneralResultAndOtherOutputIsNotAffected()
        {
            // Setup
            var    random      = new Random(39);
            double reliability = random.NextDouble();
            GeneralResult <TopLevelFaultTreeIllustrationPoint> generalResult = new TestGeneralResultFaultTreeIllustrationPoint();

            var structuresOutput = new StructuresOutput(reliability, generalResult);

            // Call
            structuresOutput.ClearIllustrationPoints();

            // Assert
            Assert.AreEqual(reliability, structuresOutput.Reliability);
            Assert.IsFalse(structuresOutput.HasGeneralResult);
            Assert.IsNull(structuresOutput.GeneralResult);
        }