public void TestNavParentSwitch()
        {
            var r = NavParentSwitch.FromFile(SourceFile("nav_parent_switch.bin"));

            Assert.AreEqual(r.Category, 1);
            Assert.AreEqual(r.Content.Foo, 0x42);
            Assert.AreEqual(r.Content.Subelement.Bar, 0xff);
        }
Exemplo n.º 2
0
        public void TestNavParentSwitch()
        {
            var r = NavParentSwitch.FromFile(SourceFile("nav_parent_switch.bin"));

            Assert.AreEqual(r.Category, 1);
            Assert.AreEqual(((NavParentSwitch.Element1)(r.Content)).Foo, 66);
            Assert.AreEqual(((NavParentSwitch.Element1)(r.Content)).Subelement.Bar, 255);
        }