public void Setup() { mr = new MockRepository(); mockFactory = new MockFactory(mr); arch = new PowerPcArchitecture32(); platform = new SysVPlatform(null, arch); }
public void Setup() { mr = new MockRepository(); mockFactory = new MockFactory(mr); arch = new X86ArchitectureFlat32(); platform = new Win32Platform(null, arch); }
public void Setup() { this.mr = new MockRepository(); this.mockFactory = new MockFactory(mr); this.platform = mockFactory.CreatePlatform(); this.program = mockFactory.CreateProgram(); }
public void Setup() { mr = new MockRepository(); mockFactory = new MockFactory(mr); var platform = mockFactory.CreatePlatform(); var imageMap = new SegmentMap(Address32.Ptr32(0x05)); program = new Program(imageMap, platform.Architecture, platform); interactor = new CombinedCodeViewInteractor(); var uiPreferencesSvc = mr.Stub<IUiPreferencesService>(); var uiSvc = mr.Stub<IDecompilerShellUiService>(); var styles = new Dictionary<string, UiStyle>() { { UiStyles.CodeWindow, new UiStyle { Background = new SolidBrush(Color.White), } } }; uiPreferencesSvc.Stub(u => u.Styles).Return(styles); var sc = new ServiceContainer(); sc.AddService<IUiPreferencesService>(uiPreferencesSvc); sc.AddService<IDecompilerShellUiService>(uiSvc); interactor.SetSite(sc); }
public void Setup() { mr = new MockRepository(); mockFactory = new MockFactory(mr); arch = new IntelArchitecture(ProcessorMode.Protected32); platform = new Win32Platform(null, arch); }
public void Setup() { mr = new MockRepository(); mockFactory = new MockFactory(mr); arch = new PowerPcArchitecture32(); var sc = new ServiceContainer(); }
public void Setup() { this.mr = new MockRepository(); this.mockFactory = new MockFactory(mr); this.sc = new ServiceContainer(); sc.AddService<IFileSystemService>(new FileSystemServiceImpl('/')); }
public void Setup() { this.mr = new MockRepository(); this.mockFactory = new MockFactory(mr); this.sc = new ServiceContainer(); this.cfgSvc = mr.Stub<IConfigurationService>(); this.sc.AddService<IConfigurationService>(cfgSvc); }
public void Setup() { mr = new MockRepository(); mockFactory = new MockFactory(mr); var platform = mockFactory.CreatePlatform(); ; program = new Program { Architecture = platform.Architecture, Platform = platform, }; codeViewer = new CodeViewerPane(); decompilerSvc = mr.Stub<IDecompilerService>(); decompiler = mr.Stub<IDecompiler>(); uiPreferencesSvc = mr.Stub<IUiPreferencesService>(); uiSvc = mr.Stub<IDecompilerShellUiService>(); frame = mr.Stub<IWindowFrame>(); font = new Font("Arial", 10); var styles = new Dictionary<string, UiStyle>() { { UiStyles.CodeWindow, new UiStyle { Background = new SolidBrush(Color.White), } } }; uiPreferencesSvc.Stub(u => u.Styles).Return(styles); var sc = new ServiceContainer(); decompilerSvc.Decompiler = decompiler; sc.AddService<IDecompilerService>(decompilerSvc); sc.AddService<IUiPreferencesService>(uiPreferencesSvc); sc.AddService<IDecompilerShellUiService>(uiSvc); codeViewer.SetSite(sc); }
public void Setup() { mr = new MockRepository(); mockFactory = new MockFactory(mr); arch = new Arm32ProcessorArchitecture(); }
public void Setup() { mr = new MockRepository(); mockFactory = new MockFactory(mr); arch = new X86ArchitectureFlat32(); }
public void Setup() { mr = new MockRepository(); mockFactory = new MockFactory(mr); arch = new SparcArchitecture32(); }
public void Setup() { this.mr = new MockRepository(); this.mockFactory = new MockFactory(mr); this.sc = new ServiceContainer(); }