Note that there are some explanatory texts on larger screens.

plurals
  1. POC# Mocking Framework - simple with informative exceptions
    primarykey
    data
    text
    <p>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.</p> <p><strong>Rhino Mocks</strong>: Can't figure it out. Everything has to be done in a totally different obscure manner making the test code practically unreadable.</p> <p><strike><strong>Moq</strong>: Can't figure out how to mock property getters. There are samples but they don't work when I try them.</strike></p> <p>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...</p> <h2>What I am looking for:</h2> <ul> <li><strong>Simple design</strong>. 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...</li> <li><strong>Elaborate feedback</strong>. 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...</li> </ul> <p>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.</p> <p>Thank you.</p> <p><strong>Edit:</strong> 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...</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload