Exemplo n.º 1
0
        public void GetLongestShouldRetrunLongest()
        {
            //arrange
            var collection = new StringCollection();

            //act
            collection.Add("hi");
            collection.Add("bye");

            //assert
            Assert.Equal("bye", collection.GetLongest());
        }
Exemplo n.º 2
0
        public void GetLongestShouldRetrunLongestUnusualValues(string value1, string value2, string value3)
        {
            //arrange
            var collection = new StringCollection();

            //act
            collection.Add(value1);
            collection.Add(value2);
            collection.Add(value3);

            //assert
            Assert.Equal(value3, collection.GetLongest());
        }