public void SplitAtFirstTest_EndEmpty() { String input = "foo,"; Char splitter = ','; String[] expected = new String[] { "foo", "" }; String[] actual; actual = input.SplitAtFirst(splitter); ExtensionsTests.AreEqual(expected, actual); }
public void SplitAtFirstTest_Begining() { String input = ",bar"; Char splitter = ','; String[] expected = new String[] { "", "bar" }; String[] actual; actual = input.SplitAtFirst(splitter); ExtensionsTests.AreEqual(expected, actual); }
public void SplitAtFirstTest_NotThere() { String input = "foo"; Char splitter = ' '; String[] expected = new String[] { "foo", null }; String[] actual; actual = input.SplitAtFirst(splitter); ExtensionsTests.AreEqual(expected, actual); }