public void ExecuteTest2() { var strs = new[] { "dog", "racecar", "car" }; var expected = ""; LongestCommonPrefix.Execute(strs).Should().Be(expected); }
public void ExecuteTest() { var strs = new[] { "flower", "flow", "flight" }; var expected = "fl"; LongestCommonPrefix.Execute(strs).Should().Be(expected); }