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(); }
public bool HasSymbolsLoaded(SbModule module) => module.HasCompileUnits();
public void HasSymbolsLoaded(bool hasCompileUnits) { mockModule.HasCompileUnits().Returns(hasCompileUnits); Assert.AreEqual(hasCompileUnits, moduleUtil.HasSymbolsLoaded(mockModule)); }