About
This blog is mostly about my work, but expect an occasional home project, productivity tip and tooling review.Search
Categories
- Conference (21)
- Development (217)
- Security (19)
- Test (32)
- Tooling (175)
- Uncategorized (168)
Most used tags
Tag Archives: unittest
Implement Interface as virtual methods
A best pratice in Object Oriented Programming is the use of Interfaces. When applied correctly it simplifies unit testing. But watch out for the pitfall of default implementation by Visual Studio. Below is an example how this can bite you. … Continue reading
AmbiguousMatchException on mock creation
See simple code below of ClassToTest with two public constructors with one parameter. My favorite mocking framework (Rhino Mocks) is unable to determine which constructor to use for mocking. The CreatePartialMock method throws an AmbiguousMatchException. The workaround for this is … Continue reading
Mobile building blocks
By using partial classes I can create libraries for every mobile platform that share a common interface. The component- / classdiagram below is a concept of this principle. The light yellow blocks are generic code and the purple blocks are … Continue reading
Posted in Development
Tagged building block, classdiagram, componentdiagram, cross platform, csharp, ios, mobile development, partial method, unittest
Leave a comment
Run unit tests in 64-bit
Some unit tests fail since my “upgrade” to Windows 8 64 bit coming from a 32 bit installation. The exception is shown below System.BadImageFormatException: Could not load file or assembly ‘XXX SQLite’ or one of its dependencies. An attempt was … Continue reading
Installation of Tfs Express and why I love tfspreview.com
Pratice what you preach. My advice is to add unittests with codecoverage to your (daily) build and make sure it’s above the threshold. To pratice this I installed Tfs Express this weekend. The installation was straight forward next-next-finish. But then … Continue reading
Posted in Tooling
Tagged live-id, msbuild, preview, SAAS, software as a service, team explorer, team foundation server, Team Foundation Service, tf30172, tfs, TFSPreview, unittest
1 Comment