コード例 #1
0
    public void TryGetBundleByIdTest(string?id)
    {
        if (id is null || id == "asdf")
        {
            Assert.IsFalse(_bundleDataDocument.TryGetBundleById(id, out _));

            return;
        }

        Assert.IsTrue(_bundleDataDocument.TryGetBundleById(id, out Bundle? _));
        if (_bundleDataDocument.TryGetBundleById(id, out Bundle? bundle))
        {
            RaiderRexxarBundleAsserts(bundle);
        }
    }
コード例 #2
0
    public void DataDocumentROMGSDTest()
    {
        using GameStringDocument gameStringDocument = GameStringDocument.Parse(_jsonGameStringFileKOKR);
        using BundleDataDocument document           = BundleDataDocument.Parse(GetBytesForROM("RaiderRexxarBundle"), gameStringDocument);

        Assert.AreEqual(Localization.KOKR, document.Localization);
        Assert.IsTrue(document.TryGetBundleById("RaiderRexxarBundle", out Bundle? bundle));
        Assert.AreEqual("특공대원 렉사르 묶음 상품", bundle !.Name);
    }