public void Parse_ThrowsOnInvalidString() { Assert.Throws <ArgumentException>(() => NonceTimestampParser.Parse("blah")); }
public void Parse_ThrowsOnNullString() { Assert.Throws <ArgumentNullException>(() => NonceTimestampParser.Parse(null)); }
public void Parse_ThrowsOnEmptyString() { Assert.Throws <ArgumentException>(() => NonceTimestampParser.Parse(string.Empty)); }
public void Parse_CorrectlyParsesNonceTimestamp() { DateTime parsedDateTime = NonceTimestampParser.Parse("63412971825005"); Assert.Equal(parsedDateTime, new DateTime(2010, 06, 24, 10, 23, 45, 5)); }