public void UpperShouldReturnUpperCaseString() { var func = new Upper(); var result = func.Execute(FunctionsHelper.CreateArgs("abc"), _parsingContext); Assert.AreEqual("ABC", result.Result); }
public void UpperWithInvalidArgumentReturnsPoundValue() { var func = new Upper(); var args = FunctionsHelper.CreateArgs(); var result = func.Execute(args, this.ParsingContext); Assert.AreEqual(eErrorType.Value, ((ExcelErrorValue)result.Result).Type); }