Example #1
0
 private void Expect_CallsToSymbolService()
 {
     slSvc.Expect(s => s.GetSymbolSource("foo.h")).Return(symSrc);
     symSrc.Expect(s => s.GetAllSymbols()).Return(new List <ImageSymbol>
     {
         new ImageSymbol(Address.Ptr32(0x00112240))
         {
             Name      = "my_procedure",
             Signature = new SerializedSignature
             {
                 // let's not worry about this yet.
             }
         }
     });
 }
Example #2
0
 private void Expect_CallsToSymbolService()
 {
     slSvc.Expect(s => s.GetSymbolSource("foo.h")).Return(symSrc);
     symSrc.Expect(s => s.GetAllSymbols()).Return(new List <ImageSymbol>
     {
         ImageSymbol.Procedure(
             program.Architecture,
             Address.Ptr32(0x00112240),
             "my_procedure",
             signature: new SerializedSignature
         {
             // let's not worry about this yet.
         })
     });
 }