Пример #1
0
        void TestDateTime(TestDb db)
        {
            db.CreateTable <TestObj> ();

            TestObj o, o2;

            //
            // Ticks
            //
            o = new TestObj {
                ModifiedTime = new DateTime(2012, 1, 14, 3, 2, 1, 234),
            };
            db.Insert(o);
            o2 = db.Get <TestObj> (o.Id);
            Assert.AreEqual(o.ModifiedTime, o2.ModifiedTime);
        }
Пример #2
0
        public void GetDoesntHaveIgnores()
        {
            var db = new TestDb();

            db.CreateTable <TestObj> ();

            var o = new TestObj {
                Text        = "Hello",
                IgnoredText = "World",
            };

            db.Insert(o);

            var oo = db.Get <TestObj> (o.Id);

            Assert.AreEqual("Hello", oo.Text);
            Assert.AreEqual(null, oo.IgnoredText);
        }