public void UpdateGameStringRewardPortraitTest() { using RewardPortraitDataDocument dataDocument = _heroesDataDirectory.RewardPortraitData(new HeroesDataVersion(2, 47, 3, 76124), true, Localization.KOKR); RewardPortrait data = dataDocument.GetRewardPortraitById("1YearAnniversaryPortrait"); Assert.AreEqual("1주년 기념 초상화", data.Name); _heroesDataDirectory.UpdateGameString(data, new HeroesDataVersion(2, 48, 4, 77407), Localization.ENUS); Assert.AreEqual("rewardportraitName", data.Name); }
public void GetRewardPortraitByIdTest(string id) { if (id is null) { Assert.ThrowsException <ArgumentNullException>(() => { _ = _rewardPortraitDataDocument.GetRewardPortraitById(id !); }); return; } else if (id == "asdf") { Assert.ThrowsException <KeyNotFoundException>(() => { _ = _rewardPortraitDataDocument.GetRewardPortraitById(id); }); return; } Basic1YearAnniversaryPortraitAsserts(_rewardPortraitDataDocument.GetRewardPortraitById(id)); }