Esempio n. 1
0
        public void AsciiDollar()
        {
            var ci = CharInfo.For('$').Value;

            Assert.That(ci.Codepoint, Is.EqualTo((uint)0x24));
            Assert.That(ci.Name, Is.EqualTo(new Utf8String("DOLLAR SIGN")), ci.Name.ToString());
            Assert.That(ci.Category, Is.EqualTo(UnicodeCategory.SymbolCurrency));
        }
Esempio n. 2
0
 public void NearTop()
 {
     Assert.NotNull(CharInfo.For(0x100000));
     Assert.NotNull(CharInfo.For(0x10FFFD));
 }
Esempio n. 3
0
        public void AsciiTab()
        {
            var ci = CharInfo.For('\t').Value;

            Assert.That(ci.Name, Is.EqualTo(new Utf8String("<control>")), ci.Name.ToString());
        }
Esempio n. 4
0
 public void NotFound()
 {
     Assert.Null(CharInfo.For(0x30000));
 }