public void Setup()
        {
            mr = new MockRepository();
            var sc = new ServiceContainer();

            sc.AddService <IFileSystemService>(new FileSystemServiceImpl());
            arch     = new X86ArchitectureReal("x86-real-16");
            platform = new MsdosPlatform(sc, arch);
            sigser   = new ProcedureSerializer(
                platform,
                new TypeLibraryDeserializer(platform, true, new TypeLibrary()),
                "stdapi");
            argser = new ArgumentDeserializer(
                sigser,
                arch,
                arch.CreateFrame(),
                // It's possible that old, hand-written assembler passes
                // arguments on unaligned offsets
                13,
                4);
            mr.ReplayAll();
        }
Beispiel #2
0
 private void Given_MsdosPlatform()
 {
     this.arch     = new X86ArchitectureReal("x86-real-16");
     this.platform = new MsdosPlatform(sc, arch);
 }
 public MsdosPropertiesInteractor(MsdosPlatform platform)
 {
     this.platform = platform;
 }
Beispiel #4
0
 private void Given_MsdosPlatform()
 {
     this.arch     = new X86ArchitectureReal(sc, "x86-real-16", new Dictionary <string, object>());
     this.platform = new MsdosPlatform(sc, arch);
 }
 public MsdosPropertiesInteractor(MsdosPlatform platform)
 {
     this.platform = platform;
 }
 public SerializedSignatureTests()
 {
     this.arch     = new IntelArchitecture(ProcessorMode.Real);
     this.platform = new MsdosPlatform(null, arch);
 }