So far I've been using NUnit.Mocks to isolate my classes but I am getting annoyed by the lack of feedback it gives me. So I've been looking around for alternatives but getting nowhere.
Rhino Mocks: Can't figure it out. Everything has to be done in a totally different obscure manner making the test code practically unreadable.
Moq: Can't figure out how to mock property getters. There are samples but they don't work when I try them.
From what I've gathered these seem to be among the most popular ones. Before I go and try every single one out there I'd like to ask you folks for suggestions...
What I am looking for:
- Simple design. I don't want to memorize 100 different statements and which one to use depending on whether my method has a return value or not, whether my property has both getters and setters or just one of them, whether it's a full moon or not, etc...
- Elaborate feedback. If my test fails I want to know what method call was missing or too much. I want to know which call had the wrong arguments. Etc...
My background is C# 2.0. I'm still pretty UN-familiar with the concepts in newer .NET versions. So a framework that doesn't require those things would be a bonus.
Thank you.
Edit: I finally figured out why my Moq tests didn't work. It had nothing to do with Moq and I am now evaluating it further. Looks very good so far...