Posts Tagged tip

Mocks for internal interfaces

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 post

, , ,

No Comments

FxCop

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

, , , ,

No Comments