예제 #1
0
    public void UpdateGameStringPortraitPackTest()
    {
        using PortraitPackDataDocument dataDocument = _heroesDataDirectory.PortraitPackData(new HeroesDataVersion(2, 47, 3, 76124), true, Localization.KOKR);
        PortraitPack data = dataDocument.GetPortraitPackById("AbathurToys18Portrait");

        Assert.AreEqual("애벌레투르 초상화", data.Name);

        _heroesDataDirectory.UpdateGameString(data, new HeroesDataVersion(2, 48, 4, 77407), Localization.ENUS);
        Assert.AreEqual("portraitName", data.Name);
    }
        public void GetPortraitPackByIdTest(string id)
        {
            if (id is null)
            {
                Assert.ThrowsException <ArgumentNullException>(() =>
                {
                    _ = _portraitPackDataDocument.GetPortraitPackById(id !);
                });

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

                return;
            }

            BasicAbathurToys18PortraitAsserts(_portraitPackDataDocument.GetPortraitPackById(id));
        }