public void TestActionHasTooManyParameters()
{
var args = new string[] { "someaction", "aval", "bval" };
try
{
var parsed = Args.ParseAction<ActionTestArgsActionMethodHasTooManyParameters>(args);
Assert.Fail("An exception should have been thrown");
}
catch (InvalidArgDefinitionException ex)
{
Assert.AreEqual("Your action method contains a parameter that cannot be revived on its own. That is only valid if the non-revivable parameter is the only parameter. In that case, the properties of that parameter type will be used.", ex.Message);
}
}