public Execute ( IEnumerable |
||
arguments | IEnumerable |
|
context | ParsingContext | |
return |
public void TimeShouldThrowExceptionIfSecondsIsOutOfRange() { var func = new Time(); var result = func.Execute(FunctionsHelper.CreateArgs(10, 11, 60), _parsingContext); }
public void TimeShouldReturnACorrectSerialNumber() { var expectedResult = GetTime(10, 11, 12); var func = new Time(); var result = func.Execute(FunctionsHelper.CreateArgs(10, 11, 12), _parsingContext); Assert.AreEqual(expectedResult, result.Result); }
public void TimeShouldThrowExceptionIfHourIsOutOfRange() { var func = new Time(); var result = func.Execute(FunctionsHelper.CreateArgs(24, 12, 12), _parsingContext); }
public void TimeShouldParseStringCorrectly() { var expectedResult = GetTime(10, 11, 12); var func = new Time(); var result = func.Execute(FunctionsHelper.CreateArgs("10:11:12"), _parsingContext); Assert.AreEqual(expectedResult, result.Result); }