public void TestImportsCircularA()
        {
            var r = ImportsCircularA.FromFile(SourceFile("fixed_struct.bin"));

            Assert.AreEqual(r.Code, 0x50);
            Assert.AreEqual(r.Two.Initial, 0x41);
            Assert.AreEqual(r.Two.BackRef.Code, 0x43);
            Assert.AreEqual(r.Two.BackRef.Two.Initial, 0x4b);
            Assert.AreEqual(r.Two.BackRef.Two.BackRef, null);
        }
예제 #2
0
        public void TestImportsCircularA()
        {
            var r = ImportsCircularA.FromFile(SourceFile("fixed_struct.bin"));

            Assert.AreEqual(r.Code, 80);
            Assert.AreEqual(r.Two.Initial, 65);
            Assert.AreEqual(r.Two.BackRef.Code, 67);
            Assert.AreEqual(r.Two.BackRef.Two.Initial, 75);
            Assert.IsNull(r.Two.BackRef.Two.BackRef);
        }