public void TestActionHasNoParameters()
{
var args = new string[] { "someaction", "aval", "bval" };
try
{
var parsed = Args.ParseAction<ActionTestArgsActionMethodHasNoParemeters>(args);
Assert.Fail("An exception should have been thrown");
}
catch (InvalidArgDefinitionException ex)
{
Assert.AreEqual("PowerArg action methods must take one parameter that matches the property type for the attribute", ex.Message);
}
}