Esempio n. 1
0
        public void SetUp()
        {
            logSpy = new LogSpy();
            logSpy.Attach();

            var noError = new SbErrorStub(true, null);

            mockTarget = Substitute.For <RemoteTarget>();
            mockTarget.SetModuleLoadAddress(Arg.Any <SbModule>(), Arg.Any <long>()).Returns(noError);
            mockModule = Substitute.For <SbModule>();
            mockModule.HasCompileUnits().Returns(false);
            mockModule.FindSection(Arg.Any <string>()).Returns((SbSection)null);
            mockPlatformFileSpec = Substitute.For <SbFileSpec>();
            moduleUtil           = new LldbModuleUtil();
        }
Esempio n. 2
0
 public bool HasSymbolsLoaded(SbModule module) => module.HasCompileUnits();
Esempio n. 3
0
        public void HasSymbolsLoaded(bool hasCompileUnits)
        {
            mockModule.HasCompileUnits().Returns(hasCompileUnits);

            Assert.AreEqual(hasCompileUnits, moduleUtil.HasSymbolsLoaded(mockModule));
        }