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