public void VerifyTableData() { var actual = SQLReader.LoadCreatureTemplates(); Assert.AreEqual(actual.Count(), 231); Assert.AreEqual(actual.Count(x => x.Value.VehicleId == 0), 0); Assert.AreEqual(actual.Max(x => x.Value.Id), 40725u); }
public Loader() { Contract.Requires(DBC.DBCPath != null); DBC.Vehicle = DBCReader.ReadDBC <VehicleEntry>(DBC.VehicleStrings); DBC.VehicleSeat = DBCReader.ReadDBC <VehicleSeatEntry>(null); DBC.VehicleUIIndicator = DBCReader.ReadDBC <VehicleUIIndicatorEntry>(null); DBC.VehicleUIIndSeat = DBCReader.ReadDBC <VehicleUIIndSeatEntry>(null); SQL.CreatureTemplate = SQLReader.LoadCreatureTemplates(); SQL.SpellClick = SQLReader.LoadSpellClick(); SQL.Accessories = SQLReader.LoadVehicleAccessories(); }
public void VerifyRecordData() { var actual = SQLReader.LoadCreatureTemplates(); var record = actual[23693]; Assert.AreEqual(record.Name, "Duskwing Eagle"); Assert.AreEqual(record.NPCFlag, 0u); Assert.AreEqual(record.UnitFlags, 0u); Assert.AreEqual(record.DynamicFlags, 8u); Assert.AreEqual(record.VehicleId, 23u); Assert.AreEqual(record.AIName, String.Empty); Assert.AreEqual(record.InhabitType, 7u); Assert.AreEqual(record.ScriptName, String.Empty); Assert.AreEqual(record.VerifiedBuild, 12340u); }