Exemplo n.º 1
0
        private static void TrySplitOnFirst(String8 value, byte splitter, string firstExpected, string secondExpected)
        {
            String8 first, second;

            Assert.AreEqual(!(firstExpected.Length == 0 && secondExpected.Length == 0), value.SplitOnFirst(splitter, out first, out second));
            Assert.AreEqual(firstExpected, first.ToString());
            Assert.AreEqual(secondExpected, second.ToString());
        }