public void TriangleFourDoesNotRunWhenGasesAreNotSpecified() { var algo = new DuvalTriangleFourRule(FailureType.Code.T2); var outputs = Outputs; var applicable = algo.IsApplicable(emptyDga, emptyDga, outputs); Assert.AreEqual(false, applicable); }
public void TriangleFourOnlyRunsWithCorrectCodeFromTriangleOne() { var triangleOneCode = FailureType.Code.PD; var algo = new DuvalTriangleFourRule(triangleOneCode); Assert.AreEqual(true, algo.IsApplicable(DGA, emptyDga, Outputs)); triangleOneCode = FailureType.Code.T1; algo = new DuvalTriangleFourRule(triangleOneCode); Assert.AreEqual(true, algo.IsApplicable(DGA, emptyDga, Outputs)); triangleOneCode = FailureType.Code.T2; algo = new DuvalTriangleFourRule(triangleOneCode); Assert.AreEqual(true, algo.IsApplicable(DGA, emptyDga, Outputs)); triangleOneCode = FailureType.Code.D1; algo = new DuvalTriangleFourRule(triangleOneCode); Assert.AreEqual(false, algo.IsApplicable(DGA, emptyDga, Outputs)); }