예제 #1
0
        public void LdaLdr_LoadEmpty()
        {
            Given_LdaFile(0x00, 0x00);

            var program = ldaLdr.Load(Address.Ptr16(0));

            Assert.AreEqual(1, program.SegmentMap.Segments.Count);
        }
예제 #2
0
        public void LdaLdr_LoadEmpty()
        {
            Given_LdaFile(0x00, 0x00);

            try
            {
                var program = ldaLdr.Load(Address.Ptr16(0));
                Assert.Fail("Should have thrown an exception");
            }
            catch (BadImageFormatException)
            {
            }
        }