Exemplo n.º 1
0
 public void TestIsHighSurrogate()
 {
     if (UChar
         .IsHighSurrogate((char)(UChar.MinHighSurrogate - 1)))
     {
         Errln("0xd7ff");
     }
     if (!UChar.IsHighSurrogate(UChar.MinHighSurrogate))
     {
         Errln("0xd800");
     }
     if (!UChar.IsHighSurrogate(UChar.MaxHighSurrogate))
     {
         Errln("0xdbff");
     }
     if (UChar
         .IsHighSurrogate((char)(UChar.MaxHighSurrogate + 1)))
     {
         Errln("0xdc00");
     }
 }