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