Beispiel #1
0
        public void TestDefaultEndianMod()
        {
            var r = DefaultEndianMod.FromFile(SourceFile("fixed_struct.bin"));

            Assert.AreEqual(r.Main.One, 1262698832);
            Assert.AreEqual(r.Main.Nest.Two, -52947);
            Assert.AreEqual(r.Main.NestBe.Two, 1346454347);
        }
        public void TestDefaultEndianMod()
        {
            var r = DefaultEndianMod.FromFile(SourceFile("fixed_struct.bin"));

            Assert.AreEqual(r.Main.One, 0x4b434150);
            Assert.AreEqual(r.Main.Nest.Two, -52947);
            Assert.AreEqual(r.Main.NestBe.Two, 0x5041434b);
        }