示例#1
0
        public void TestDeleteUser_with_id_and_name()
        {
            Base <User> @base = new Base <User>();

            @base.Save(new User(12, "Frank"));

            Assert.IsTrue(@base.Delete(0));
        }
示例#2
0
        public void TestDeleteEmptyUser()
        {
            Base <User> @base = new Base <User>();

            @base.Save(new User());



            Assert.IsTrue(@base.Delete(0));
        }
示例#3
0
        public void TestDeleteUser_with_id()
        {
            Base <User> @base = new Base <User>();


            @base.Save(new User(12));



            Assert.IsTrue(@base.Delete(0));
        }
示例#4
0
        public void TestDeleteNull()
        {
            Base <User> @base = new Base <User>();

            Assert.IsFalse(@base.Delete(0));
        }