예제 #1
0
            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);
            }
예제 #2
0
 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)));
 }
예제 #3
0
 public void ReturnsCorrectCountForRecordsWithArrays()
 {
     Assert.AreEqual(6, DBCInspector.GetPropertyCount(WarcraftVersion.Classic, typeof(TestDBCRecordWithArray)));
 }