Posts Tagged tip
Mocks for internal interfaces
Posted by gamlerhart in .NET, software-development on May 7, 2009
Maybe you’ve already seen an exception like this: Castle.DynamicProxy.Generators.GeneratorException: Type is not public, so a proxy cannot be generated. Type: SpielWiese.IReportSender …stack-trace… at SpielWiese.TestSomething.ExpectReportsSend() in Program.cs: line 64 What I’ve tried is to create a mock-object with Rhino-Mock. Since this interface is only intended for usage within the assembly it’s declared as internal interface. So [...]
Read complete postFxCop
Posted by gamlerhart in .NET, software-development on February 18, 2009
I’m a fan of static analysis because whem I’m writing code in a statically typed language I want to get the most of it. So I’m a huge fan of IntelliJ IDEA’s code analysis and quick-fixes. Also FindBugs is useful and also open source. Of course there are even more sophisticated analyses, but it catches [...]
Read complete post