public void TestMissingDoubleMessage() { Args.ArgsException e = new Args.ArgsException(Args.ArgsException.ErrorCodes.MISSING_DOUBLE, "x", null); Assert.AreEqual("Could not find double parameter for -x.", e.ErrorMessage()); }
public void TestInvalidDoubleMessage() { Args.ArgsException e = new Args.ArgsException(Args.ArgsException.ErrorCodes.INVALID_DOUBLE, "x", "Forty two"); Assert.AreEqual("Argument -x expects a double but was 'Forty two'.", e.ErrorMessage()); }
public void TestMissingIntegerMessage() { Args.ArgsException e = new Args.ArgsException(Args.ArgsException.ErrorCodes.MISSING_INTEGER, "x", null); Assert.AreEqual("Could not find integer parameter for -x.", e.ErrorMessage()); }
public void TestInvalidIntegerMessage() { Args.ArgsException e = new Args.ArgsException(Args.ArgsException.ErrorCodes.INVALID_INTEGER, "x", "Forty two"); Assert.AreEqual("Argument -x expects an integer but was 'Forty two'.", e.ErrorMessage()); }
public void TestMissingStringMessage() { Args.ArgsException e = new Args.ArgsException(Args.ArgsException.ErrorCodes.MISSING_STRING, "x", null); Assert.AreEqual("Could not find string parameter for -x.", e.ErrorMessage()); }
public void TestUnexpectedMessage() { Args.ArgsException e = new Args.ArgsException(Args.ArgsException.ErrorCodes.UNEXPECTED_ARGUMENT, "x", null); Assert.AreEqual("Argument -x unexpected.", e.ErrorMessage()); }