public void TwoBooleansInOrElse() { TestOrElse orElse = new TestOrElse(false, true); TestSequence seq = TestExpressionTracer.GetTraceableBoolResultActivity(orElse, true.ToString()); TestRuntime.RunAndValidateWorkflow(seq); }
public void TwoBooleansInAndAlso() { TestAndAlso andAlso = new TestAndAlso(true, false); TestSequence seq = TestExpressionTracer.GetTraceableBoolResultActivity(andAlso, false.ToString()); TestRuntime.RunAndValidateWorkflow(seq); }
public void ShortCircuitEvaluation() { TestOrElse orElse = new TestOrElse { LeftActivity = new TestExpressionEvaluator <bool> { ExpressionResult = true }, RightActivity = new TestExpressionEvaluatorWithBody <bool> { Body = new TestThrow <Exception>() }, HintShortCircuit = true }; TestSequence seq = TestExpressionTracer.GetTraceableBoolResultActivity(orElse, true.ToString()); TestRuntime.RunAndValidateWorkflow(seq); }