Archives
-
Mocking Extension Methods
Daniel Cazzulino had a very helpful post about how to mock extension methods. The only part I don’t like about this method is the fact you have to make internals visible to the test assembly using an assembly directive:
-
Mock Implementing Multiple Interfaces
One of the recent tests I had, I had to deal with the fact that a dependency object injected into system under test object will be casted to some other interface (known to be implemented) and used. Moq has some documentation on it, but it was a bit misleading. QuickStart wiki showed an example below:
-
UML and Sequence Diagrams Online Generators
I am a fan of quick tools that help you sketch out thoughts. These two do exact that type of work.
-
Troubleshooting SSL Connectivity
While integrating two clients and working on two way authentication, I had to troubleshoot SSL connectivity. Configuration file was my best tool I could use. There are a couple of things I used, and probably there’s a lot more I am not aware of.
-
Syntactic Sugar