示例#1
0
文件: UnitTest1.cs 项目: wowdev/DBCD
        public void TestEncryptedInfo()
        {
            var githubDBDProvider = new GithubDBDProvider();
            var dbcProvider       = new TestDBCProvider(Directory.GetCurrentDirectory());

            DBCD dbcd = new DBCD(dbcProvider, githubDBDProvider);

            var storage = dbcd.Load("SpellName");

            foreach (var section in storage.GetEncryptedSections())
            {
                System.Console.WriteLine($"Found encrypted secttion encrypted with key {section.Key} containing {section.Value} rows");
            }
        }
示例#2
0
文件: UnitTest1.cs 项目: wowdev/DBCD
        public void TestHotfixApplying()
        {
            DBCD dbcd = new DBCD(dbcProvider, githubDBDProvider);

            var storage = dbcd.Load("ItemSparse");
            var hotfix  = new HotfixReader("hotfix.bin");

            var countBefore = storage.Count;

            storage = storage.ApplyingHotfixes(hotfix);

            var countAfter = storage.Count;

            System.Console.WriteLine($"B: {countBefore} => A: {countAfter}");
        }