Example #1
0
        public void TooFewArguments()
        {
            var testee = new SingleArgumentTransitionActionHolder <IBase>(BaseAction);

            Action action = () => { testee.Execute(new object[] { }); };

            action.ShouldThrow <ArgumentException>();
        }
Example #2
0
        public void DerivedType()
        {
            var testee = new SingleArgumentTransitionActionHolder <IBase>(BaseAction);

            testee.Execute(new[] { Mock.Of <IDerived>() });
        }