public async Task DataDocumentStreamAsyncTest() { using FileStream stream = new FileStream(_dataFile, FileMode.Open); using HeroSkinDataDocument document = await HeroSkinDataDocument.ParseAsync(stream, Localization.FRFR); Assert.AreEqual(Localization.FRFR, document.Localization); Assert.IsTrue(document.JsonDataDocument.RootElement.TryGetProperty("AbathurBaseVar3", out JsonElement _)); }
public async Task DataDocumentStreamWithGameStringDocumentAsyncTest() { using GameStringDocument gameStringDocument = GameStringDocument.Parse(_jsonGameStringFileKOKR); using FileStream stream = new(_dataFile, FileMode.Open); using HeroSkinDataDocument document = await HeroSkinDataDocument.ParseAsync(stream, gameStringDocument); Assert.AreEqual(Localization.KOKR, document.Localization); Assert.IsTrue(document.JsonDataDocument.RootElement.TryGetProperty("AbathurBaseVar3", out JsonElement _)); }