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