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 85959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:10:16+00:00 2026-05-10T22:10:16+00:00

I have a set of Visual Studio Team System unit (integration really) tests that

  • 0

I have a set of Visual Studio Team System unit (integration really) tests that talk to a remote database. The tests are getting too slow and unwieldy. I’d like to replace the entire set of tests with mocked out versions. The problem is it’s painful to write all the expect statements that mimic what an entire database does.

Does anyone know of a tool or add-on that will run an existing test, figure out what the non-mocked version actually returns and write out the Expect.Call’s to duplicate the functionality? I know this is a long shot, but I feel like it should be possible.

  • 1 1 Answer
  • 3 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. 2026-05-10T22:10:16+00:00Added an answer on May 10, 2026 at 10:10 pm

    Ok, I ended up writing it myself. Here is the blog post overview:

    Write My Rhino Mocks Expect Statement

    And here is the CodePlex project:

    WriteMyExpectStatement

    Hope this helps someone somewhere.

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

Sidebar

Related Questions

I have set of Visual Studio solutions which have unit tests. I want to
I have a mixed mode C++-CLI program in Visual Studio 2005 that is set
I am using Visual Studio 2008 team system. I have C project. I went
I have Visual Studio 2003 project and I have set all of the AssemblyInfo
I have a little dilemma on how to set up my visual studio builds
I have a Visual Studio Setup project which has a Application Folder DefaultLocation set
I have set my Visual Studio to start Nunit as an external program to
I have set a breakpoint in an HttpHandler in visual studio. The HttpHandler is
I am using Visual Studio 2010 Ultimate SP1 and have set my project's target
I have two Visual Studio database projects. Both build fine on my local dev

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.