Пример #1
0
        public void WorkForLongerRepeatedStrings()
        {
            List <string> list_number = new List <string> {
                "made", "rosario", "rosario", "pipo", ""
            };
            var result = Week4.LongerLength(list_number);

            Assert.AreEqual((2, "rosario"), result);
        }
Пример #2
0
        public void WorkForDifferentStringSameLengthLonger()
        {
            List <string> list_number = new List <string> {
                "made", "mariantonieta132*", "rosario", "rosario", "pipo", "mariantonieta132*", "fidelia", "mariantoniete132/", "mariantonieta132*", ""
            };
            var result = Week4.LongerLength(list_number);

            Assert.AreEqual((4, "mariantonieta132*"), result);
        }
Пример #3
0
        public void WorkForLongerString()
        {
            List <string> list_number = new List <string> {
                "made", "rosario", "carmenates123", "pipo", ""
            };
            var result = Week4.LongerLength(list_number);

            Assert.AreEqual((1, "carmenates123"), result);
        }