If I intercept both the constructur and all methods of an object, I get a Null reference exception when executing a method.
Here is a gist with the code and the output. https://gist.github.com/DewJunkie/393a6c6c5b0cf0c73398 Bitbucket: https://bitbucket.org/DewJunkie/codecop-evaluation
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at CodeCop.Core.InterceptorExecuter.AfterExecute(Int32 token) at Testing.TestClass.Greet(String greetee) in g:\dev\test\CodeCop\CodeCopTutorial\Testing\Program.cs:line 69 at Testing.Program.Main(String args) in g:\dev\test\CodeCop\CodeCopTutorial\Testing\Program.cs:line 23
If you'd prefer the files attached instead, let me know, but I assume this is easier to work with.
In the attached solution if I comment out the code which intercepts the constructor, then everything works just fine. Intercepting both the constructor and the method call gives the above exception.