Ejemplo n.º 1
0
        public void Test_38_RMI_Kind4()
        {
            byte[] source_bytes = File.ReadAllBytes("testdata/38/Item04.rmi");
            var rmi = new RM.v38.RMI(new ByteReader(source_bytes));

            Assert.AreEqual(4, rmi.ItemKind);
            Assert.AreEqual(46, rmi.Items.Count);

            COMMON.IsGoldfish(rmi.Items[1]);
            COMMON.IsBeer(rmi.Items[22]);

            COMMON.CompareFiles(source_bytes, rmi.Save(new ByteWriter()));
        }
Ejemplo n.º 2
0
        public void Test_38_RMI_Kind4()
        {
            byte[] source_bytes = File.ReadAllBytes("testdata/38/Item04.rmi");
            var    rmi          = new RM.v38.RMI(new ByteReader(source_bytes));

            Assert.AreEqual(4, rmi.ItemKind);
            Assert.AreEqual(46, rmi.Items.Count);

            COMMON.IsGoldfish(rmi.Items[1]);
            COMMON.IsBeer(rmi.Items[22]);

            COMMON.CompareFiles(source_bytes, rmi.Save(new ByteWriter()));
        }
Ejemplo n.º 3
0
        public void Test_38_RMI_Kind1()
        {
            byte[] source_bytes = File.ReadAllBytes("testdata/38/Item01.rmi");
            var rmi = new RM.v38.RMI(new ByteReader(source_bytes));

            Assert.AreEqual(1, rmi.ItemKind);
            Assert.AreEqual(242, rmi.Items.Count);

            COMMON.IsNovaBlade(rmi.Items[154]);
            Assert.AreEqual(new CTF.Ref(4,0,42), rmi.Items[154].Message);

            COMMON.IsNovaWand(rmi.Items[164]);
            Assert.AreEqual(new CTF.Ref(4,4,26), rmi.Items[164].Message);

            COMMON.IsM9(rmi.Items[146]);
            Assert.AreEqual(new CTF.Ref(4,5,7), rmi.Items[146].Message);

            COMMON.CompareFiles(source_bytes, rmi.Save(new ByteWriter()));
        }
Ejemplo n.º 4
0
        public void Test_38_RMI_Kind1()
        {
            byte[] source_bytes = File.ReadAllBytes("testdata/38/Item01.rmi");
            var    rmi          = new RM.v38.RMI(new ByteReader(source_bytes));

            Assert.AreEqual(1, rmi.ItemKind);
            Assert.AreEqual(242, rmi.Items.Count);

            COMMON.IsNovaBlade(rmi.Items[154]);
            Assert.AreEqual(new CTF.Ref(4, 0, 42), rmi.Items[154].Message);

            COMMON.IsNovaWand(rmi.Items[164]);
            Assert.AreEqual(new CTF.Ref(4, 4, 26), rmi.Items[164].Message);

            COMMON.IsM9(rmi.Items[146]);
            Assert.AreEqual(new CTF.Ref(4, 5, 7), rmi.Items[146].Message);

            COMMON.CompareFiles(source_bytes, rmi.Save(new ByteWriter()));
        }