public static void Main(string[] args) { Console.WriteLine(SplitString.Solution("abc")); Console.WriteLine(SplitString.Solution("abcd")); Console.WriteLine(SplitString.Solution("abcdef")); Console.WriteLine(SplitString.Solution("ab")); Console.WriteLine(SplitString.Solution("abcdefgh")); Console.WriteLine(SplitString.Solution("abcdefg")); Console.ReadLine(); }
public void BasicTests() { Assert.AreEqual(new string[] { "ab", "c_" }, SplitString.Solution("abc")); Assert.AreEqual(new string[] { "ab", "cd", "ef" }, SplitString.Solution("abcdef")); }