예제 #1
0
        public void NativeActivity_FailsWhenReturnedDelegateFails()
        {
            FailsWhenReturningNativeActivity mock = new FailsWhenReturningNativeActivity()
            {
                ContinueOnError = false
            };
            WorkflowInvokerTest invoker = new WorkflowInvokerTest(mock);

            Assert.Throws <NotImplementedException>(() => { invoker.TestActivity(); });
        }
예제 #2
0
        public void NativeActivity_ContinuesWhenReturnedDelegateFails()
        {
            FailsWhenReturningNativeActivity mock = new FailsWhenReturningNativeActivity()
            {
                ContinueOnError = true
            };
            WorkflowInvokerTest invoker = new WorkflowInvokerTest(mock);

            invoker.TestActivity();
        }