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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:13:40+00:00 2026-05-24T21:13:40+00:00

Given the following conditions: a very old, big, C# legacy code base with no

  • 0

Given the following conditions:

  • a very old, big, C# legacy code base with no testcoverage whatsoever
  • (almost) every class derives from some interface
  • nothing is sealed

What are the practical benefits of using profiler-API-driven solutions like JustMock and TypeMock, compared to using extract&override + e.g. RhinoMocks? Are there cases I’m not aware of, besides circumventing private/protected, where using TypeMock/JustMock etc. is really needed? I’d especially welcome some experience from people having switched to one of the products.

Using extract&override seems to solve all problems when handling old legacy code, the refactoring seems dead simple, and the possibility for introducing bugs seems very minor. Is the benefit writing less test code? More beautifull classes with less virtual protected stuff? Right now, I don’t ‘get it’, although I understand it’s very helpfull to first test private methods in isolation, as public methods may be too large under the hood in such old legacy codebases.

If you don’t know what extract&override is: see here.

  • 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-24T21:13:41+00:00Added an answer on May 24, 2026 at 9:13 pm

    There are many differences between the frameworks which do not regard the technology on which the frameworks built on.

    For example:

    • API – every framework has different notations and defaults (e.g.
      strict defaults vs. relaxed defaults)
    • Support – the propriety frameworks usually offer support with the licenses
    • Price – this is not a matter of usage but requires budget

    The main advantage of Extract&Override is that it requires some refactoring, if the code you’re working on is neglected, it’s gives a good chance to go over it and refactor it toward better code and not just for testability.

    The main advantage of using an Isolation framework is that you do not need to change the code under test (if it’s a large codebase it could take long time just to refactor it for testability). In addition, the Isolation frameworks do not force you into specific design, this could be helpful if the legacy code matches better its existing design. Another feature which is useful in legacy code is swapping instances created in the code under test, usually refactoring instantiations takes more effort and this can be saved. Last thing is faking 3rd party code – using isolation frameworks you can isolate code which is not yours without using wrapper classes.

    Disclaimer – I work at Typemock

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

Sidebar

Related Questions

Given this model in legacy code, with RoR 2.3.11: class Assignment < ActiveRecord::Base belongs_to
Given the following code (that doesn't work): while True: # Snip: print out current
Given the following code: const int size = 20; char buffer[size]; // From the
Pls i have the following code in my model Letter.count(:id, :conditions => [language_id =
Given the following code: if (is_valid($string) && up_to_length($string) && file_exists($file)) { ...... } If
How can I generate permutations given the following conditions? There are two integers, for
Given the following code, is there a better way to structure this? foreach(Thing item
Given this code: $user_profile = $facebook->api('/me'); echo $user_profile['name']; I see the following error for
Given the following idioms: 1) variable = value1 if condition variable = value2 2)
Given following Ruby statements: (Read input and store each word in array removing spaces

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.