public void GetLongestShouldRetrunLongest() { //arrange var collection = new StringCollection(); //act collection.Add("hi"); collection.Add("bye"); //assert Assert.Equal("bye", collection.GetLongest()); }
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()); }