public void Model_RecordingTimeModelBase_TestConstructor() { RecordingTimeModelBase model = new RecordingTimeModelBase(); DateTime d = new DateTime(); Assert.AreNotEqual(model.CreatedTime, d); Assert.AreNotEqual(model.ModifiedTime, d); Assert.AreEqual(model.CreatedTime, model.ModifiedTime); }
public void Model_RecordingTimeModelBase_TestOnModify() { RecordingTimeModelBase model = new RecordingTimeModelBase(); DateTime d = new DateTime(); System.Threading.Thread.Sleep(1); model.OnModify(); Assert.AreNotEqual(model.CreatedTime, d); Assert.AreNotEqual(model.ModifiedTime, d); Assert.AreNotEqual(model.CreatedTime, model.ModifiedTime); }