Ejemplo n.º 1
0
        public void NativeActivity_FailsWhenReturnedDelegateFails()
        {
            FailsWhenReturningNativeActivity mock = new FailsWhenReturningNativeActivity()
            {
                ContinueOnError = false
            };
            WorkflowInvokerTest invoker = new WorkflowInvokerTest(mock);

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

            invoker.TestActivity();
        }