Exemplo n.º 1
0
        public void TooFewArguments()
        {
            var testee = new ArgumentTransitionActionHolder <IBase>(BaseAction);

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

            action.ShouldThrow <ArgumentException>();
        }
Exemplo n.º 2
0
        public void NonMatchingType()
        {
            var testee = new ArgumentTransitionActionHolder <IBase>(BaseAction);

            Action action = () => { testee.Execute(3); };

            action.ShouldThrow <ArgumentException>();
        }
Exemplo n.º 3
0
        public void DerivedType()
        {
            var testee = new ArgumentTransitionActionHolder <IBase>(BaseAction);

            testee.Execute(A.Fake <IDerived>());
        }
Exemplo n.º 4
0
        public void MatchingType()
        {
            var testee = new ArgumentTransitionActionHolder <IBase>(BaseAction);

            testee.Execute(A.Fake <IBase>());
        }