Пример #1
0
        public void AddLettersAndSpaces_AddsLettersAndSpacesToList_CharList()
        {
            RepeatCounter newCounter         = new RepeatCounter();
            List <char>   expectedLetterList = new List <char>()
            {
                'a'
            };
            List <char> testLetterList = new List <char>()
            {
            };
            List <char> expectedSpaceList = new List <char>()
            {
                ' '
            };
            List <char> testSpaceList = new List <char>()
            {
            };

            newCounter.AddLettersAndSpaces('a', testLetterList);
            newCounter.AddLettersAndSpaces(' ', testSpaceList);
            CollectionAssert.AreEqual(expectedLetterList, testLetterList);
            CollectionAssert.AreEqual(expectedSpaceList, testSpaceList);
        }