public void ArgsThrowsOnDuplicateMixedCaseNamedArguments()
{
var args = new string[] { "-string", "string", "-String", "specifiedTwice" };
try
{
var parsed = Args.Parse<BasicArgs>(args);
Assert.Fail("An exception should have been thrown");
}
catch (Exception ex)
{
Assert.IsInstanceOfType(ex, typeof(DuplicateArgException));
Assert.AreEqual("Argument specified more than once: String", ex.Message);
}
}