예제 #1
0
        public void FeaturevalClone_CloneAFeature_ReturnADifferentInstance()
        {
            using (var face = new PaduakDisposableFace())
            {
                uint   lang = Graphite2Api.StrToTag("en");
                IntPtr one  = Graphite2Api.FaceFeaturevalForLang(face.Face, lang);
                IntPtr two  = Graphite2Api.FeaturevalClone(one);
                Assert.NotNull(one, "one");
                Assert.NotNull(two, "two");
                Assert.AreNotEqual(one, two);

                Graphite2Api.FeatureValDestroy(one);
                Graphite2Api.FeatureValDestroy(two);
            }
        }