public Execute ( IEnumerable |
||
arguments | IEnumerable |
|
context | ParsingContext | |
Результат |
public void MonthShouldReturnMonthOfYearWithStringParam() { var date = new DateTime(2012, 3, 12); var func = new Month(); var result = func.Execute(FunctionsHelper.CreateArgs("2012-03-12"), _parsingContext); Assert.AreEqual(3, result.Result); }
public void MonthShouldReturnMonthOfYear() { var date = new DateTime(2012, 3, 12); var func = new Month(); var result = func.Execute(FunctionsHelper.CreateArgs(date.ToOADate()), _parsingContext); Assert.AreEqual(3, result.Result); }