public void AddEntry_ThrowsArgumentException() { DBCFile <CharTitlesEntry> dbcFile = new DBCFile <CharTitlesEntry>("//path//", "signature"); CharTitlesEntry charTitlesEntry = new CharTitlesEntry { Id = 1, NameMale = "Title %s", NameFemale = "Title %s", TitleMaskId = 1 }; dbcFile.AddEntry(1, charTitlesEntry); Assert.Throws <ArgumentException>(() => dbcFile.AddEntry(1, new CharTitlesEntry())); }
public void AddEntry_Contains() { DBCFile <CharTitlesEntry> dbcFile = new DBCFile <CharTitlesEntry>("//path//", "signature"); CharTitlesEntry charTitlesEntry = new CharTitlesEntry { Id = 1, NameMale = "Title %s", NameFemale = "Title %s", TitleMaskId = 1 }; dbcFile.AddEntry(1, charTitlesEntry); Assert.Contains(charTitlesEntry, dbcFile.Records); }