public void ShouldResolveStaticMethodOfExternalClass() { var csharp = DecompilationResult.CreateFromDelegate <NullCursor, string>(_delegateReader, (cursor, args, keys) => { return(SomeInterace.StaticGreeting("def")); }); var redIL = _csharpCompiler.Compile(csharp) as RootNode; }
public void ShouldResolveMethodOfExternalInterface() { var csharp = DecompilationResult.CreateFromDelegate <NullCursor, string>(_delegateReader, (cursor, args, keys) => { ISomeInterface foo = new SomeInterace("abc"); return(foo.Greeting("def")); }); var redIL = _csharpCompiler.Compile(csharp) as RootNode; }