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)); }
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); }