public void ListOfIndex_MaxIndex_ShouldReturn2()
        {
            var indexes = new List <int> {
                1, 2
            };
            var listOfIndex = new ListOfIndex(indexes);

            Assert.IsNotNull(listOfIndex);
            var count = listOfIndex.Count();

            Assert.AreEqual(2, count);
        }
示例#2
0
        public void ListOfIndex_Count_AreEqual_ExpectTrue()
        {
            //-----------------------Arrange------------------------
            List <int> indexes = new List <int>();

            indexes.Add(12);
            indexes.Add(13);
            indexes.Add(14);
            indexes.Add(15);

            var listOfIndex = new ListOfIndex(indexes);

            //-----------------------Act----------------------------
            //-----------------------Assert-------------------------
            Assert.AreEqual(4, listOfIndex.Count());
        }