コード例 #1
0
 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);
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 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);
 }
コード例 #4
0
        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);
        }