public void TestRepeatNStrzDouble() { var r = RepeatNStrzDouble.FromFile(SourceFile("repeat_n_strz.bin")); Assert.AreEqual(r.Qty, 2); CollectionAssert.AreEqual(r.Lines1, new [] { "foo" }); CollectionAssert.AreEqual(r.Lines2, new [] { "bar" }); }
public RepeatNStrzDouble(KaitaiStream p__io, KaitaiStruct p__parent = null, RepeatNStrzDouble p__root = null) : base(p__io) { m_parent = p__parent; m_root = p__root ?? this; _read(); }