Execute() public method

public Execute ( IEnumerable arguments, ParsingContext context ) : CompileResult
arguments IEnumerable
context ParsingContext
return ExcelFormulaParser.Engine.ExpressionGraph.CompileResult
 public void DayShouldReturnMonthOfYearWithStringParam()
 {
     var date = new DateTime(2012, 3, 12);
     var func = new Day();
     var result = func.Execute(FunctionsHelper.CreateArgs("2012-03-12"), _parsingContext);
     Assert.AreEqual(12, result.Result);
 }
 public void DayShouldReturnDayInMonth()
 {
     var date = new DateTime(2012, 3, 12);
     var func = new Day();
     var args = FunctionsHelper.CreateArgs(date.ToOADate());
     var result = func.Execute(args, _parsingContext);
     Assert.AreEqual(12, result.Result);
 }