From 1868449af997123c9f19048bbcaae80af5999244 Mon Sep 17 00:00:00 2001 From: Martin Benjamins Date: Sat, 23 Nov 2024 22:42:21 +0100 Subject: [PATCH] Add tests for WDB5 reading 1 test will fail while wowdev/WoWDBDefs#195 is unmerged --- DBCD.Tests/ReadingTest.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/DBCD.Tests/ReadingTest.cs b/DBCD.Tests/ReadingTest.cs index 3cb6b97..f53af8a 100644 --- a/DBCD.Tests/ReadingTest.cs +++ b/DBCD.Tests/ReadingTest.cs @@ -11,6 +11,24 @@ public class ReadingTest static GithubDBDProvider githubDBDProvider = new(true); static readonly WagoDBCProvider wagoDBCProvider = new(); + [TestMethod] + public void TestWDB5ReadingNoIndexData() + { + DBCD dbcd = new(wagoDBCProvider, githubDBDProvider); + IDBCDStorage storage = dbcd.Load("Achievement_Category", "7.1.0.23222"); + var row = storage[1]; + Assert.AreEqual("Statistics", row["Name_lang"]); + } + + [TestMethod] + public void TestWDB5Reading() + { + DBCD dbcd = new(wagoDBCProvider, githubDBDProvider); + IDBCDStorage storage = dbcd.Load("Map", "7.1.0.23222"); + var row = storage[451]; + Assert.AreEqual("development", row["Directory"]); + } + [TestMethod] public void TestWDC1Reading() {