public void UpdateGameStringEmoticonPackTest() { using EmoticonPackDataDocument dataDocument = _heroesDataDirectory.EmoticonPackData(new HeroesDataVersion(2, 47, 3, 76124), true, Localization.KOKR); EmoticonPack data = dataDocument.GetEmoticonPackById("CassiaEmoticonPack2"); Assert.AreEqual("카시아 팩 2", data.Name); _heroesDataDirectory.UpdateGameString(data, new HeroesDataVersion(2, 48, 4, 77407), Localization.ENUS); Assert.AreEqual("emotPackName", data.Name); }
public void GetEmoticonPackByIdTest(string id) { if (id is null) { Assert.ThrowsException <ArgumentNullException>(() => { _ = _emoticonPackDataDocument.GetEmoticonPackById(id !); }); return; } else if (id == "asdf") { Assert.ThrowsException <KeyNotFoundException>(() => { _ = _emoticonPackDataDocument.GetEmoticonPackById(id); }); return; } BasicCassiaEmoticonPack2Asserts(_emoticonPackDataDocument.GetEmoticonPackById(id)); }