コード例 #1
0
        public void DeleteUsersTest()
        {
            DefaultDataGeneration filler = new DefaultDataGeneration();
            DataChamber           data   = new DataChamber();
            DatabaseActions       test   = new DatabaseActions(data, filler);
            Users newUser = new Users(1, "Test", "Testowy", 1908);

            test.AddUser(newUser);
            Assert.AreEqual(test.ReadUser(5), newUser);

            test.DeleteUser(5);
            Assert.IsFalse(test.ReadAllUsers().Contains(newUser));
        }