public void InvalidDobuleMessage() { var e = new ArgsException(ErrorCode.InvalidDouble, 'x', "Forty two"); Assert.AreEqual( "Argument -x expects a double but was 'Forty two'.", e.GetErrorMessage()); }
public void MissingDoubleMessage() { var e = new ArgsException(ErrorCode.MissingDouble, 'x'); Assert.AreEqual( "Could not find double parameter for -x.", e.GetErrorMessage()); }
public void UnexpectedMessage() { var e = new ArgsException(ErrorCode.UnexpectedArgument, 'x'); Assert.AreEqual("Argument -x unexpected.", e.GetErrorMessage()); }
public void InvalidFormat() { var e = new ArgsException(ErrorCode.InvalidArgumentFormat, 'x', "$"); Assert.AreEqual("'$' is not a valid argument format.", e.GetErrorMessage()); }
public void InvalidArgumentName() { var e = new ArgsException(ErrorCode.InvalidArgumentName, '#'); Assert.AreEqual("'#' is not a valid argument name.", e.GetErrorMessage()); }