Beispiel #1
0
        public void TestSwitchRepeatExpr()
        {
            var r = SwitchRepeatExpr.FromFile(SourceFile("switch_tlv.bin"));

            Assert.AreEqual(r.Code, 0x11);
            Assert.AreEqual(r.Size, 9);
            Assert.AreEqual(((SwitchRepeatExpr.One)r.Body[0]).First, System.Text.Encoding.ASCII.GetBytes("Stuff\0Me\0"));
        }
Beispiel #2
0
        public void TestSwitchRepeatExpr()
        {
            var r = SwitchRepeatExpr.FromFile(SourceFile("switch_tlv.bin"));

            Assert.AreEqual(r.Code, 17);
            Assert.AreEqual(r.Size, 9);
            Assert.AreEqual(((SwitchRepeatExpr.One)(r.Body[0])).First, new byte[] { 83, 116, 117, 102, 102, 0, 77, 101, 0 });
        }