public void ReturnsCorrectCountOnRecordsOnVersionedRecords() { long propCountClassic = DBCInspector.GetPropertyCount(WarcraftVersion.Classic, typeof(TestDBCRecord)); long propCountWrath = DBCInspector.GetPropertyCount(WarcraftVersion.Wrath, typeof(TestDBCRecord)); long propCountCata = DBCInspector.GetPropertyCount(WarcraftVersion.Cataclysm, typeof(TestDBCRecord)); Assert.AreEqual(4, propCountClassic); Assert.AreEqual(5, propCountWrath); Assert.AreEqual(4, propCountCata); }
public void ReturnsCorrectCountForRecordsWithVersionedArrays() { Assert.AreEqual(3, DBCInspector.GetPropertyCount(WarcraftVersion.Classic, typeof(TestDBCRecordWithVersionedArray))); Assert.AreEqual(5, DBCInspector.GetPropertyCount(WarcraftVersion.Wrath, typeof(TestDBCRecordWithVersionedArray))); Assert.AreEqual(7, DBCInspector.GetPropertyCount(WarcraftVersion.Cataclysm, typeof(TestDBCRecordWithVersionedArray))); }
public void ReturnsCorrectCountForRecordsWithArrays() { Assert.AreEqual(6, DBCInspector.GetPropertyCount(WarcraftVersion.Classic, typeof(TestDBCRecordWithArray))); }