示例#1
0
        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();
        }
示例#2
0
 public void BasicTests()
 {
     Assert.AreEqual(new string[] { "ab", "c_" }, SplitString.Solution("abc"));
     Assert.AreEqual(new string[] { "ab", "cd", "ef" }, SplitString.Solution("abcdef"));
 }