Example #1
0
        public void TestStarDictInfo()
        {
            var info = new StarDictInfo(Path.GetFullPath(@"data/jargon.ifo"));

            Assert.AreEqual("jargon.ifo", Path.GetFileName(info.FileName));
            Assert.AreEqual(4, info.PointerSize);
            Assert.AreEqual("jargon", Path.GetFileName(info.BaseName));
            Assert.AreEqual('m', info.TypeMark);
            Console.WriteLine(info.BaseName);
        }
Example #2
0
 public void TestStarDictIdx()
 {
     var info = new StarDictInfo("data/jargon.ifo");
     var idx  = new StarDictIdx(info);
 }