Esempio n. 1
0
        public void CodeActivity_ContinuesWhenReturnedDelegateFails()
        {
            FailsWhenReturningCodeActivity mock = new FailsWhenReturningCodeActivity()
            {
                ContinueOnError = true
            };
            WorkflowInvokerTest invoker = new WorkflowInvokerTest(mock);

            invoker.TestActivity();
        }
Esempio n. 2
0
        public void CodeActivity_FailsWhenReturnedDelegateFails()
        {
            FailsWhenReturningCodeActivity mock = new FailsWhenReturningCodeActivity()
            {
                ContinueOnError = false
            };
            WorkflowInvokerTest invoker = new WorkflowInvokerTest(mock);

            Assert.Throws <NotImplementedException>(() => { invoker.TestActivity(); });
        }