public void NullUtils_GetNullOrDateTime_Value_Success() { DateTime?value = new DateTime(1981, 1, 21); Assert.AreEqual(new DateTime(1981, 1, 21), NullUtils.GetNullOrDateTime(value), "GetNullOrDateTime(value) did not return the expected value"); }
public void NullUtils_GetNullOrDateTime_Null_Success() { DateTime?value = null; Assert.IsNull(NullUtils.GetNullOrDateTime(value), "GetNullOrDateTime(null) should have returned null"); }