public void TooFewArguments() { var testee = new SingleArgumentTransitionActionHolder <IBase>(BaseAction); Action action = () => { testee.Execute(new object[] { }); }; action.ShouldThrow <ArgumentException>(); }
public void DerivedType() { var testee = new SingleArgumentTransitionActionHolder <IBase>(BaseAction); testee.Execute(new[] { Mock.Of <IDerived>() }); }