public void FindPrefix1_PassedNoCommonPrefixStringArray_ReturnsEmptyString() { string[] input = new string[] { "abc", "def", "ghi" }; Assert.AreEqual("", LongestCommonPrefix.FindPrefix1(input)); }
public void FindPrefix1_PassedFlStringArray_Returnsfl() { string[] input = new string[] { "flower", "flow", "fleet" }; Assert.AreEqual("fl", LongestCommonPrefix.FindPrefix1(input)); }