Execute() public method

public Execute ( IEnumerable arguments, ParsingContext context ) : CompileResult
arguments IEnumerable
context ParsingContext
return ExcelFormulaParser.Engine.ExpressionGraph.CompileResult
 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);
 }