public void LastUpdateTimeNullWhenNotSet()
        {
            var app = new Application();
                var t = (TaskItem)app.CreateItem(OlItemType.olTaskItem);

                Assert.AreEqual(null, t.GetLastModifiedDate());
        }
        public void TestProperties()
        {
            var app = new Application();
            var t = (TaskItem) app.CreateItem(OlItemType.olTaskItem);

            t.SetFogbugzCaseId(123);
            Assert.AreEqual(123, t.GetFogbugzCaseId());
        }
        public void SetLastUpdateTime()
        {
            var app = new Application();
            var t = (TaskItem) app.CreateItem(OlItemType.olTaskItem);

            t.SetLastModificationDateForTesting(DateTime.Parse("2013-1-1 10:00am"));
            Assert.AreEqual(DateTime.Parse("2013-1-1 10:00am"), t.GetLastModifiedDate());
        }
        public void SetLastSync()
        {
            var app = new Application();
                var t = (TaskItem)app.CreateItem(OlItemType.olTaskItem);

                t.SetLastSync(DateTime.Parse("2013-1-1 10:00am"));
                Assert.AreEqual(DateTime.Parse("2013-1-1 10:00am"), t.GetLastSync());
        }
        public void LastUpdateTimeWhenSet()
        {
            var app = new Application();
                var t = (TaskItem)app.CreateItem(OlItemType.olTaskItem);
            t.Save();

                Assert.AreEqual(t.LastModificationTime, t.GetLastModifiedDate());
        }