internal static LabelAddressResolver Make()
        {
            LabelTable      labelTable      = new LabelTable();
            EntryPointTable entryPointTable = new EntryPointTable();

            return(new LabelAddressResolver(labelTable, entryPointTable));
        }
Example #2
0
        public void Link_RegisterEntryPoints()
        {
            ExecutableModule notUsed = Linker.Link(m_relModules);

            EntryPoint[] expected = TestUtils.MakeArray(
                EntryPointTest.Make("ADD1234", "SUB", ADD1234_Address),
                EntryPointTest.Make("MAIN", "MAIN", MAIN_Address));
            EntryPointTable          entryPointTable = Linker.EntryPointTableForUnitTest;
            IEnumerable <EntryPoint> actual          = entryPointTable.EntryPoints;

            TestUtils.CheckEnumerable(
                expected, actual, EntryPointTest.Check,
                "各再配置可能モジュールの EntryPoint にアドレスが設定され、EntryPointTable に登録される");
        }
 public void TestInitialize()
 {
     m_entryPointTable = new EntryPointTable();
 }
 public void TestInitialize()
 {
     m_labelAddrResolver = Make();
     m_labelTable        = m_labelAddrResolver.LabelTable;
     m_entryPointTable   = m_labelAddrResolver.EntryPointTable;
 }