예제 #1
0
        public void FrefLabel_FirstPaduakFeature_ReturnsExpectedString()
        {
            using (var feature = new PaduakFeatureVal())
            {
                ushort lang = (ushort)Graphite2Api.StrToTag("en");
                UInt32 length;

                IntPtr labelPtr = Graphite2Api.FrefLabel(feature.FeatureRef, ref lang, Encform.Utf8, out length);
                string label    = Marshal.PtrToStringAnsi(labelPtr);
                Assert.AreEqual("Khamti style dots", label);

                Graphite2Api.LabelDestroy(labelPtr);
            }
        }