public void DataDocumentROMLocaleTest()
    {
        using RewardPortraitDataDocument document = RewardPortraitDataDocument.Parse(GetBytesForROM("AbathurCarbotsPortrait"), Localization.FRFR);

        Assert.AreEqual(Localization.FRFR, document.Localization);
        Assert.IsTrue(document.JsonDataDocument.RootElement.TryGetProperty("AbathurCarbotsPortrait", out JsonElement _));
    }
    public void DataDocumentFileTest()
    {
        using RewardPortraitDataDocument document = RewardPortraitDataDocument.Parse(_dataFile);

        Assert.AreEqual(Localization.KOKR, document.Localization);
        Assert.IsTrue(document.JsonDataDocument.RootElement.TryGetProperty("1YearAnniversaryPortrait", out JsonElement _));
    }
    public void DataDocumentStreamTest()
    {
        using FileStream stream = new(_dataFile, FileMode.Open);
        using RewardPortraitDataDocument document = RewardPortraitDataDocument.Parse(stream, Localization.FRFR);

        Assert.AreEqual(Localization.FRFR, document.Localization);
        Assert.IsTrue(document.JsonDataDocument.RootElement.TryGetProperty("AbathurCarbotsPortrait", out JsonElement _));
    }
    public void DataDocumentROMGSDTest()
    {
        using GameStringDocument gameStringDocument = GameStringDocument.Parse(_jsonGameStringFileKOKR);
        using RewardPortraitDataDocument document   = RewardPortraitDataDocument.Parse(GetBytesForROM("AbathurCarbotsPortrait"), gameStringDocument);

        Assert.AreEqual(Localization.KOKR, document.Localization);
        Assert.IsTrue(document.TryGetRewardPortraitById("AbathurCarbotsPortrait", out RewardPortrait? rewardPortrait));
        Assert.AreEqual("카봇 아바투르 초상화", rewardPortrait !.Name);
    }
    public void DataDocumentFileGSDTest()
    {
        using GameStringDocument gameStringDocument = GameStringDocument.Parse(_jsonGameStringFileFRFR);
        using RewardPortraitDataDocument document   = RewardPortraitDataDocument.Parse(_dataFile, gameStringDocument);

        Assert.AreEqual(Localization.FRFR, document.Localization);
        Assert.IsTrue(document.TryGetRewardPortraitById("1YearAnniversaryPortrait", out RewardPortrait? rewardPortrait));
        Assert.AreEqual("1주년 기념 초상화", rewardPortrait !.Name);
    }
        public void DataDocumentStreamWithGSDTest()
        {
            using GameStringDocument gameStringDocument = GameStringDocument.Parse(_jsonGameStringFileKOKR);
            using FileStream stream = new FileStream(_dataFile, FileMode.Open);
            using RewardPortraitDataDocument document = RewardPortraitDataDocument.Parse(stream, gameStringDocument);

            Assert.AreEqual(Localization.KOKR, document.Localization);
            Assert.IsTrue(document.JsonDataDocument.RootElement.TryGetProperty("AbathurCarbotsPortrait", out JsonElement _));
        }
 public RewardPortraitDataDocumentTests()
 {
     _rewardPortraitDataDocument = RewardPortraitDataDocument.Parse(LoadJsonTestData(), Localization.ENUS);
 }