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

  • Home
  • SEARCH
  • 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 6603609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:02:14+00:00 2026-05-25T19:02:14+00:00

I am coming to c# from ruby on rails where I did TDD using

  • 0

I am coming to c# from ruby on rails where I did TDD using Rspec and Mocha. I was looking to get into get into a mocking framework and an older stackoverflow post pointed me in the direction of MOQ and rhino mocks. I was hesitant to commit to either and am looking for a bit of advice or clarification or maybe just a pep talk…

Here were my concerns:

  • Rhino mocks seems to be a bit out of date. A lot of the examples didn’t even make use of generics because it seems like they weren’t available when the framework was created
  • Moq seems to be less powerful than Rhino mocks and it seems like you need to adapt your classes in order to mock them (either they must implement an interface or all methods must be virtual)

Am I way off base here? Am I missing something? Is there some cool new framework I should know about or do I just need to open my mind up and accept that mocking isn’t the same for static languages?

(I know questions kinda like this have been asked in the past but they seem a little dated to me and I am interesting in what the latest hip new things are)

  • 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-25T19:02:15+00:00Added an answer on May 25, 2026 at 7:02 pm

    Test-driven development doesn’t have a side-effect of making you write your code in a different way. It is actually intended to make you write code differently. We think that you write code better when you test it. You are more likely to hide code behind an interface, which is a good thing. It will hopefully make you do lots of stuff in a different way!

    Onto Rhino / Moq…

    Rhino Mocks has received a bit overhaul since it was first written, you no longer have to use the record/replay syntax, you can use Arrange-Act-Assert syntax and there are no magic strings to be seen.

    Rhino Mocks – Arrange Act Assert Syntax

    In Moq you can mock interfaces and classes. The syntax is simpler and a bit more expressive.

    The good news is, I think you are looking at the best two and trying to choose between them. I don’t think you would regret selecting either of these.

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

Sidebar

Related Questions

Coming from the ruby on rails world, I'm looking for an efficient way to
I'm diving into ASP.NET MVC and I'm coming from a Ruby on Rails background.
I'm in the process of learning Ruby on Rails, and I'm coming from just
I'm coming from a Ruby on Rails environment and I'm really spoiled with Active
I'm coming from C#, and recently I started to write some Ruby on Rails
I'm brand new to java, coming from a ruby world. One thing I love
Firstly, I'm not using rails. This is vanilla ruby application. I've read about packaging
I'm new to Django coming from Rails, and I am finding the Django fixtures
After doing some stuff in Ruby on Rails with Cucumber, RSpec and Ruby BDD
I'm using CherryPy, Mako templates, and SQLAlchemy in a web app. I'm coming from

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.