示例#1
0
        public void TwoBooleansInOrElse()
        {
            TestOrElse orElse = new TestOrElse(false, true);

            TestSequence seq = TestExpressionTracer.GetTraceableBoolResultActivity(orElse, true.ToString());

            TestRuntime.RunAndValidateWorkflow(seq);
        }
示例#2
0
        public void TwoBooleansInAndAlso()
        {
            TestAndAlso andAlso = new TestAndAlso(true, false);

            TestSequence seq = TestExpressionTracer.GetTraceableBoolResultActivity(andAlso, false.ToString());

            TestRuntime.RunAndValidateWorkflow(seq);
        }
示例#3
0
        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);
        }