Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }