public void TestSwitchManualEnumInvalid() { var r = SwitchManualEnumInvalid.FromFile(SourceFile("enum_negative.bin")); Assert.AreEqual(r.Opcodes.Count, 2); Assert.AreEqual(r.Opcodes[0].Code, (SwitchManualEnumInvalid.Opcode.CodeEnum) 255); Assert.IsNull(r.Opcodes[0].Body); Assert.AreEqual(r.Opcodes[1].Code, (SwitchManualEnumInvalid.Opcode.CodeEnum) 1); Assert.IsNull(r.Opcodes[1].Body); }
public Intval(KaitaiStream p__io, SwitchManualEnumInvalid.Opcode p__parent = null, SwitchManualEnumInvalid p__root = null) : base(p__io) { m_parent = p__parent; m_root = p__root; _read(); }
public SwitchManualEnumInvalid(KaitaiStream p__io, KaitaiStruct p__parent = null, SwitchManualEnumInvalid p__root = null) : base(p__io) { m_parent = p__parent; m_root = p__root ?? this; _read(); }