Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1045153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:56:29+00:00 2026-05-16T15:56:29+00:00

To preface this, I love Moq. I wish I could use it in .NET

  • 0

To preface this, I love Moq. I wish I could use it in .NET 3.0. Sadly, however, I cannot, but I would still like to use mocks for unit testing purposes. Also, I’ve used Rhino before, but I absolutely hate it. To be a little more descriptive, though, it’s because the interface feels clunky and unintuitive–which can be dealt with–and the documentation is either horrible or non-existent–which can’t.

The essence of my question is whether there are other decently-documented, intuitive, fluent-interface frameworks out there for C#2.0/.NET3.0, or whether I’m stuck banging my head against Rhino in the absence of Moq.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T15:56:30+00:00Added an answer on May 16, 2026 at 3:56 pm

    I personally distinguish three kinds of mocking frameworks(in order of emergence):

    1. Arrange-Act-Assert (AAA) using string method names ala NMock2/NUnit Mocks. Pretty easy to get going but is not strongly typed. If method/property is renamed then the test will fail at runtime.

    2. Record-and-replay ala Rhino Mocks. I totally agree with you, the syntax sucks and I hate using it. It is fully strongly typed so when you refactor a method, the test stays up to date.

    3. AAA using lambdas and expressions. These include MOQ, Latest AAA releases of Rhino Mocks and Typemock Isolator. By far the best syntax, but requires .NET 3.5.

    If .NET 3.5 is unavailable, I am afraid that you have to pick the least evil – horrible Rhino Mocks syntax or late binding to method/property names.

    PS. Microsoft has its own isolation framework called Moles. I haven’t checked it out myself, but it’s supposed to be fairly powerful (i.e. mocking static methods, non-public methods etc). Check it out here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to preface this with I'm a complete newb, so keep that
I would like to preface this with I'm not trying to start a fight.
I'll preface this by saying that I usually work in C#/.Net. Normally, I use
Let me preface this question by saying I use TextMate on Mac OSX for
Let me preface this by saying I feel like a moron. I have a
Let me preface this with saying I am still a newbie when it comes
To preface this, I do not work with Java or Struts, but I understand
(Preface: this question is about ASP.NET MVC 3.0 which was released in 2011 ,
Let me preface this question by saying that I am a .NET developer at
I have to preface this with the fact that I love jQuery as a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.