Exemple #1
0
        public void Remove_RemoveFromEmptyList_CountShouldStayTheSame()
        {
            CustomListTest <int> test = new CustomListTest <int>();
            int expected = 0;
            int actual   = 0;

            test.Remove(0);
            actual = test.Count;
            Assert.AreEqual(expected, actual);
        }
Exemple #2
0
        public void Remove_RemoveFromPopulatedList_CountShouldDecreaseByOne()
        {
            CustomListTest <int> test = new CustomListTest <int>();
            int expected;
            int actual = 0;

            test.Remove(0)
            actual = test.Count;
            Assert.AreEqual(expected, actual);
        }
Exemple #3
0
        public void Remove_RemoveFromPopulatedList_ItemShouldBeRemovedAtIndexNine()
        {
            CustomListTest <int> test = new CustomListTest <int>();
            int expected = 9;
            int actual;

            test.Remove(9);
            actual = test[9];
            Assert.AreEqual(expected, actual);
        }
Exemple #4
0
        public void Remove_RemoveFromPopulatedList_ItemIsRemoved()

        {
            CustomListTest <int> test = new CustomListTest <int>();
            int expected = 0;
            int actual;

            test.Remove(0);
            actual = test[0];
            Assert.AreEqual(expected, actual);
        }