public void TestRepeatUntilS4()
        {
            var r = RepeatUntilS4.FromFile(SourceFile("repeat_until_s4.bin"));

            Assert.AreEqual(r.Entries, new int[] { 0x42, 0x1337, -251658241, -1 });
            Assert.AreEqual(r.Afterall, "foobar");
        }
Пример #2
0
        public void TestRepeatUntilS4()
        {
            var r = RepeatUntilS4.FromFile(SourceFile("repeat_until_s4.bin"));

            Assert.AreEqual(r.Entries, new List <int> {
                66, 4919, -251658241, -1
            });
            Assert.AreEqual(r.Afterall, "foobar");
        }
 public RepeatUntilS4(KaitaiStream p__io, KaitaiStruct p__parent = null, RepeatUntilS4 p__root = null) : base(p__io)
 {
     m_parent = p__parent;
     m_root   = p__root ?? this;
     _read();
 }