Exemplo n.º 1
0
 public void InvalidTimesAreNotParsed(string stringToParse)
 => TestCommon.LiteralTokensAreParsedCorrectly <TimeToken>(stringToParse, null);
Exemplo n.º 2
0
 public void HoursMinutesAndSecondsAreParsedCorrectly(string stringToParse, string expectedTokenStr)
 => TestCommon.LiteralTokensAreParsedCorrectly <TimeToken>(stringToParse, expectedTokenStr);
Exemplo n.º 3
0
 public void BinLimitedIntegerValuesWithInvalidDigitsAreNotParsed(string stringToParse)
 => TestCommon.LiteralTokensAreParsedCorrectly <LimitedIntegerToken>(stringToParse, null);
Exemplo n.º 4
0
 public void OctUnsignedLimitedIntegerValuesAreParsedCorrectly(string stringToParse, string expectedValue)
 => TestCommon.LiteralTokensAreParsedCorrectly <LimitedIntegerToken, BigInteger>(stringToParse, BigInteger.Parse(expectedValue));
Exemplo n.º 5
0
 public void SeperatedTimeStampFlagDoesntParse(string stringToParse)
 => TestCommon.LiteralTokensAreParsedCorrectly <TimespanToken>(stringToParse, null);
Exemplo n.º 6
0
 public void BinLimitedIntegerValuesOutOfRangeAreNotParsed(string stringToParse)
 => TestCommon.LiteralTokensAreParsedCorrectly <LimitedIntegerToken>(stringToParse, null);
Exemplo n.º 7
0
 public void FloatSecondsAreParsedCorrectly(string stringToParse)
 => TestCommon.LiteralTokensAreParsedCorrectly <TimespanToken, TimeSpan>(stringToParse, TimeSpan.FromSeconds(100.1));
Exemplo n.º 8
0
 public void DecimalMillisecondsAreParsedCorrectly(string stringToParse)
 => TestCommon.LiteralTokensAreParsedCorrectly <TimespanToken, TimeSpan>(stringToParse, TimeSpan.FromMilliseconds(100));
Exemplo n.º 9
0
 public void InvalidCompoundCombinationsDontParse(string stringToParse)
 => TestCommon.LiteralTokensAreParsedCorrectly <TimespanToken>(stringToParse, null);
Exemplo n.º 10
0
 public void CompoundTimePartsCombineCorrectly(string stringToParse, string expectedValue)
 => TestCommon.LiteralTokensAreParsedCorrectly <TimespanToken>(stringToParse, expectedValue);
Exemplo n.º 11
0
 public void DatesAreParsedCorrectly(string stringToParse, string expectedTokenStr)
 => TestCommon.LiteralTokensAreParsedCorrectly <DateToken>(stringToParse, expectedTokenStr);