예제 #1
0
        public void CountAllString()
        {
            //Arrange
            ListCustom <string> testListOne = new ListCustom <string>()
            {
                "0", "1", "1", "1", "2"
            };
            //Act
            int result = testListOne.Count();

            //Assert
            Assert.AreEqual(5, result);
        }
예제 #2
0
        public void CountAllInt()
        {
            //Arrange
            ListCustom <int> testListOne = new ListCustom <int>()
            {
                0, 1, 1, 1, 2
            };
            //Act
            int result = testListOne.Count();

            //Assert
            Assert.AreEqual(5, result);
        }
예제 #3
0
        public void CountAllObject()
        {
            //Arrange
            Person test = new Person("test");
            ListCustom <Person> testListOne = new ListCustom <Person>()
            {
                new Person("1"), test, test, test, new Person("2")
            };
            //Act
            int result = testListOne.Count();

            //Assert
            Assert.AreEqual(5, result);
        }