Ejemplo n.º 1
0
 public void ConvertNormalDateToDateTimeTest()
 {
     try
     {
         var fDate     = new FuzzyDate(2019, 9, 3);
         var converted = fDate.ToDateTime();
         Assert.AreEqual(fDate.Year.Value, converted.Year);
         Assert.AreEqual(fDate.Month.Value, converted.Month);
         Assert.AreEqual(fDate.Day.Value, converted.Day);
     }
     catch (Exception ex)
     {
         Assert.Fail($"Expect no exception, but got {ex.Message}");
     }
 }