Example #1
0
    public void UpdateGameStringBannerTest()
    {
        using BannerDataDocument dataDocument = _heroesDataDirectory.BannerData(new HeroesDataVersion(2, 47, 3, 76124), true, Localization.KOKR);
        Banner data = dataDocument.GetBannerById("BannerD3DemonHunter");

        Assert.AreEqual("악마사냥꾼 깃발", data.Name);

        _heroesDataDirectory.UpdateGameString(data, new HeroesDataVersion(2, 48, 4, 77407), Localization.ENUS);
        Assert.AreEqual("bannerName", data.Name);
    }
Example #2
0
        public void GetBannerByIdTest(string id)
        {
            if (id is null)
            {
                Assert.ThrowsException <ArgumentNullException>(() =>
                {
                    _ = _bannerDataDocument.GetBannerById(id !);
                });

                return;
            }
            else if (id == "asdf")
            {
                Assert.ThrowsException <KeyNotFoundException>(() =>
                {
                    _ = _bannerDataDocument.GetBannerById(id);
                });

                return;
            }

            BasicBannerD3DemonHunterRareAsserts(_bannerDataDocument.GetBannerById(id));
        }