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

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

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

            Assert.AreEqual(Localization.FRFR, document.Localization);
            Assert.IsTrue(document.JsonDataDocument.RootElement.TryGetProperty("cat_blink_anim", out JsonElement _));
        }
        public void DataDocumentStreamWithGSDTest()
        {
            using GameStringDocument gameStringDocument = GameStringDocument.Parse(_jsonGameStringFileKOKR);
            using FileStream stream             = new FileStream(_dataFile, FileMode.Open);
            using EmoticonDataDocument document = EmoticonDataDocument.Parse(stream, gameStringDocument);

            Assert.AreEqual(Localization.KOKR, document.Localization);
            Assert.IsTrue(document.JsonDataDocument.RootElement.TryGetProperty("cat_blink_anim", out JsonElement _));
        }
        public void DataDocumentStreamWithGameStringStreamTest()
        {
            using FileStream streamGameString   = new FileStream(_jsonGameStringFileKOKR, FileMode.Open);
            using FileStream stream             = new FileStream(_dataFile, FileMode.Open);
            using EmoticonDataDocument document = EmoticonDataDocument.Parse(stream, streamGameString);

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

            Assert.AreEqual(Localization.KOKR, document.Localization);
            Assert.IsTrue(document.TryGetEmoticonById("cat_blink_anim", out Emoticon? emoticon));
            Assert.AreEqual("Unknown", emoticon !.Name);
            Assert.AreEqual("저주받은 고양이 점멸 :고양점멸:", emoticon !.Description?.RawDescription);
        }
        public void DataDocumentFileGSDTest()
        {
            using GameStringDocument gameStringDocument = GameStringDocument.Parse(_jsonGameStringFileFRFR);
            using EmoticonDataDocument document         = EmoticonDataDocument.Parse(_dataFile, gameStringDocument);

            Assert.AreEqual(Localization.FRFR, document.Localization);
            Assert.IsTrue(document.TryGetEmoticonById("abathur_mecha_angry", out Emoticon? emoticon));
            Assert.AreEqual("Angry", emoticon !.Name);
            Assert.AreEqual("제노공학 아바투르 화남 :제노아바 화:", emoticon !.Description?.RawDescription);
        }
 public EmoticonDataDocumentTests()
 {
     _emoticonDataDocument = EmoticonDataDocument.Parse(LoadJsonTestData(), Localization.ENUS);
 }