コード例 #1
0
        public void CodeActivity_ContinuesWhenReturnedDelegateFails()
        {
            FailsWhenReturningCodeActivity mock = new FailsWhenReturningCodeActivity()
            {
                ContinueOnError = true
            };
            WorkflowInvokerTest invoker = new WorkflowInvokerTest(mock);

            invoker.TestActivity();
        }
コード例 #2
0
        public void CodeActivity_FailsWhenReturnedDelegateFails()
        {
            FailsWhenReturningCodeActivity mock = new FailsWhenReturningCodeActivity()
            {
                ContinueOnError = false
            };
            WorkflowInvokerTest invoker = new WorkflowInvokerTest(mock);

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