Skip to content

Commit

Permalink
Add tests for WDB5 reading
Browse files Browse the repository at this point in the history
1 test will fail while wowdev/WoWDBDefs#195 is unmerged
  • Loading branch information
Marlamin committed Nov 23, 2024
1 parent ea1d717 commit 1868449
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions DBCD.Tests/ReadingTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit 1868449

Please sign in to comment.