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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:17:19+00:00 2026-05-16T21:17:19+00:00

The builtin unit test generator(VS) for the target classes should that be used or

  • 0

The builtin unit test generator(VS) for the target classes should that be used or should I learn myself how to write a unit test? And whats this “Mock” thing? I hear it over and over but none cares to give a good explanation.

Thanks in advance.

  • 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-16T21:17:19+00:00Added an answer on May 16, 2026 at 9:17 pm

    You need to learn to write unit tests on your own. Start off on the right foot with good comprehension of terminology that many people make mistakes regarding:

    Unit test: Testing a single unit of code, very small atomic test.

    Integration test: Testing multiple units of code integrated together, to go through the different layers and ensure they are using eachother correctly. These should be done after unit tests have verified the individual units work independently. Many people mistakenly refer to these as unit tests.

    Built Verification Test: Testing the built product by deploying it and running tests that will interact with it in the manner a user would. Also mistakenly referred to as unit tests frequently. These are the largest most full featured tests and often just done manually by testing teams rather than being automated.

    Here’s the quickstart for MOQ which is a mocking framework:
    https://github.com/Moq/moq4/wiki/Quickstart

    Mocking is the act of taking a small piece of code that may depend on other things, mocking those other things up so that you can control the circumstances surrounding the piece of code you want to test.

    The purpose of mocking is atomicity in tests. It allows you to test just the individual piece of code you want, without having it’s tests affected due to bugs in dependent code pieces. Also mocking gives you the ability to fabricate a variety of scenarios to test the edge cases of each piece of code.

    Mocking is generally purposed for creating boundaries around the target code in unit tests, though it’s not uncommon to use it in integration tests too for fabricating a resource that acts as the seed to the integrated code chain you’re targeting.

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

Sidebar

Related Questions

Why does the last assert in this built-in unit test in the ASP.NET MVC
All my unit test classes have been created by Visual Studio 2008 from a
I'm looking into using Visual Studio 2008's built in unit test projects instead of
Visual studio has a built-in unit test framework. I am wondering if I can
I heard there is built-in tool in VS2010 for unit test for C#. I
Have just started using Visual Studio Professional's built-in unit testing features, which as I
I am a rookie was using the Visual Studio 2008 built-in Unit Testing components,
Which built in (if any) tool can I use to determine the allocation unit
There are no builtin matrix functions in C#, but there are in the F#
Does any Common Lisp (builtin) function return more than 2 values? I know many

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.