Working with MC++

time to read 1 min | 165 words

I got a bug report about using Rhino Mocks from a MC++ application, so I opened a project in C++, and I now have to learn all those things that I didn't really miss in C++.

Header files and implementation files. The project looks totally different, too. I now need to re-learn C++ and learn how to do it in managed code. So many of my insticts are wrong, for example. It took me several minutes to figure out what using statement is like in MC++.

And don't get me started on "::" and "->" versus the ".".

The good news is that it doesn't take all that long to setup a short test, and it's real relief to know that TestDriven.Net works on C++ projects as well. This allowed me to find the bug really quickly. It was one of those things that you can't express in C#, overloaded indexed properties.