Example #1
0
        public void ExecuteTest2()
        {
            var strs     = new[] { "dog", "racecar", "car" };
            var expected = "";

            LongestCommonPrefix.Execute(strs).Should().Be(expected);
        }
Example #2
0
        public void ExecuteTest()
        {
            var strs     = new[] { "flower", "flow", "flight" };
            var expected = "fl";

            LongestCommonPrefix.Execute(strs).Should().Be(expected);
        }