예제 #1
0
파일: NullTest.cs 프로젝트: zyj0021/DbEntry
        public void TestNullString()
        {
            NullTable o = NullTable.FindById(2);

            Assert.IsNotNull(o);
            Assert.AreEqual(2, o.Id);
            Assert.AreEqual(null, o.Name);
            Assert.AreEqual(1, o.MyInt);
            Assert.AreEqual(false, o.MyBool);
        }
예제 #2
0
파일: NullTest.cs 프로젝트: zyj0021/DbEntry
        public void TestNullTableWithNonNullValue()
        {
            NullTable o = NullTable.FindById(4);

            Assert.IsNotNull(o);
            Assert.AreEqual(4, o.Id);
            Assert.AreEqual("tom", o.Name);
            Assert.AreEqual(1, o.MyInt);
            Assert.AreEqual(true, o.MyBool);
        }