Exemple #1
0
        public void When_RemoveNullCity_ThenShould_ThrowException()
        {
            // Arrange && Act
            var list = new GenericStringList();

            list.RemoveCity(null);
        }
Exemple #2
0
        public void When_RemoveNotNullCity_ThenShould_DecreaseListCapacity()
        {
            // Arrange
            var list = new GenericStringList();

            list.AddCity(CITY);
            var oldCapacity = list.Capacity();

            // Act
            list.RemoveCity(CITY);
            // Assert
            Assert.AreEqual(oldCapacity - 1, list.Capacity());
        }