示例#1
0
 public void CinfoUnicodeChar_OnTestCinfo_ReturnsExpectecCharacter()
 {
     using (var seg = new PaduakDisposableTestSegment("hello world"))
     {
         IntPtr firstSlot = Graphite2Api.SegFirstSlot(seg.Seg);
         IntPtr char_info = Graphite2Api.SegCinfo(seg.Seg, (uint)Graphite2Api.SlotBefore(firstSlot));
         Assert.AreEqual(104, Graphite2Api.CinfoUnicodeChar(char_info));
     }
 }