示例#1
0
        private void AssertParseUnixSuccess(object timeToParse, long expectedTime)
        {
            ValueParseResult parseResult = TimeParser.ParseUnix(timeToParse);

            Assert.That(parseResult.Success, Is.True);
            Assert.That(parseResult.Value, Is.EqualTo(expectedTime));
        }
示例#2
0
        private void AssertParseUnixFail(object timeToParse)
        {
            ValueParseResult parseResult = TimeParser.ParseUnix(timeToParse);

            Assert.That(parseResult.Success, Is.False);
            Assert.That(parseResult.Value, Is.Null);
            Assert.That(parseResult.ErrorDetails, Is.Not.Empty);
        }