public void DeserializeTestExceptionNotDate2()
 {
     var dateTimeStringDeserializer = new DateTimeStringDeserializer();
     Assert.AreEqual(new DateTime(100),
                     dateTimeStringDeserializer.Deserialize(
                         (DateTime.MaxValue.Ticks + 1).ToString(CultureInfo.InvariantCulture)));
 }
 public void DeserializeTest()
 {
     var dateTimeStringDeserializer = new DateTimeStringDeserializer();
     Assert.AreEqual(new DateTime(100), dateTimeStringDeserializer.Deserialize("100"));
     Assert.AreEqual(new DateTime(10000), dateTimeStringDeserializer.Deserialize("10000"));
     Assert.AreEqual(new DateTime(0), dateTimeStringDeserializer.Deserialize("0"));
 }
 public void DeserializeTestExceptionNotDate1()
 {
     var dateTimeStringDeserializer = new DateTimeStringDeserializer();
     Assert.AreEqual(new DateTime(100), dateTimeStringDeserializer.Deserialize("-1"));
 }