Exemple #1
0
        public void SplitAtFirstTest_EndEmpty()
        {
            String input    = "foo,";
            Char   splitter = ',';

            String[] expected = new String[] { "foo", "" };
            String[] actual;
            actual = input.SplitAtFirst(splitter);
            ExtensionsTests.AreEqual(expected, actual);
        }
Exemple #2
0
        public void SplitAtFirstTest_Begining()
        {
            String input    = ",bar";
            Char   splitter = ',';

            String[] expected = new String[] { "", "bar" };
            String[] actual;
            actual = input.SplitAtFirst(splitter);
            ExtensionsTests.AreEqual(expected, actual);
        }
Exemple #3
0
        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);
        }