Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }