示例#1
0
        public void Add_AddToPopulatedList_CapacityShouldStayAtTwelve()
        {
            CustomListTest <int> test = new CustomListTest <int>();
            int expected = 10;
            int actual;

            test.Capacity();
            actual = test.Capacity(10);
            Assert.AreEqual(expected, actual);
        }
示例#2
0
        public void Add_AddToPopulatedList_CapacityShouldIncreaseToTwelve()
        {
            CustomListTest <int> test = new CustomListTest <int>();
            int expected = 9;
            int actual;

            test.Capacity();
            actual = test.Capacity(9);
            Assert.AreEqual(expected, actual);
        }
示例#3
0
        public void Add_AddToEmptyList_CapacityShouldIncreasetoEight()
        {
            CustomListTest <int> test = new CustomListTest <int>();
            int expected = 5;
            int actual;

            test.Capacity(5);
            actual = test.Capacity;
            Assert.AreEqual(expected, actual);
        }