Example #1
0
 [TestCase(new[] { 'a', 'b', '\xD800', 'c' }, 2, ExpectedResult = 3)]   // Badly formed pair in middle...don't go too far
 public int NextChar_InvalidData(char[] st, int ich)
 {
     // NUnit doesn't allow tests with invalid strings in a testcase, so we create the
     // string from the character array when running the test
     return(Surrogates.NextChar(new string(st), ich));
 }
Example #2
0
 public int NextChar(string st, int ich)
 {
     return(Surrogates.NextChar(st, ich));
 }