Ejemplo n.º 1
0
 public void Parse_ThrowsOnInvalidString()
 {
     Assert.Throws <ArgumentException>(() => NonceTimestampParser.Parse("blah"));
 }
Ejemplo n.º 2
0
 public void Parse_ThrowsOnNullString()
 {
     Assert.Throws <ArgumentNullException>(() => NonceTimestampParser.Parse(null));
 }
Ejemplo n.º 3
0
 public void Parse_ThrowsOnEmptyString()
 {
     Assert.Throws <ArgumentException>(() => NonceTimestampParser.Parse(string.Empty));
 }
Ejemplo n.º 4
0
        public void Parse_CorrectlyParsesNonceTimestamp()
        {
            DateTime parsedDateTime = NonceTimestampParser.Parse("63412971825005");

            Assert.Equal(parsedDateTime, new DateTime(2010, 06, 24, 10, 23, 45, 5));
        }