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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:17:51+00:00 2026-05-29T09:17:51+00:00

I am fairly new to unit testing. I am in school, and currently taking

  • 0

I am fairly new to unit testing. I am in school, and currently taking junior projects. We have a web application to write. We are going to use C# and asp.net. We are currently doing all the requirements, architecture, and i am responsible for the Quality Assurance and picking the right framework. We have a ton of paperwork to complete and i am trying to get my QA plan finished.

I am not sure what to use for unit testing. Although, we will be using asp.net i dont think we have the need to use MVC at this point. For simplicity sake should we just use visual studio built in functionality to Generate an ASP.NET unit test? Or, should i look into using Nunit? or something like it?

Keep in mind this is just a school project. Our team of 4 will all have to perform the unit tests and most of us dont have much experience in it.

What are your thoughts?

  • 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-29T09:17:51+00:00Added an answer on May 29, 2026 at 9:17 am

    For simplicity sake should we just use visual studio built in
    functionality to Generate an ASP.NET unit test?

    No, that’s completely useless. Well, you could use it for your school project or something but don’t fool yourself that you are doing unit testing.

    Or, should i look into using Nunit? or something like it?

    Yeah, definitely. But in order to successfully be able to unit test your ASP.NET application, it needs to be designed so that the different layers are weakly coupled between them and could be reused in isolation. This is easily achieved by using abstractions (interfaces and abstract classes) instead of working with concrete implementations. Also remember that any code that is dependent on an HttpContext cannot be easily unit tested in isolation. The best way is to work with the abstractions provided by ASP.NET like HttpContextBase, HttpRequestBase, HttpResponseBase, … which can easily be mocked in a unit test.

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

Sidebar

Related Questions

I'm fairly new to unit testing and we are actually attempting to use it
I am fairly new to unit testing in C# and learning to use Moq.
I am fairly new to unit testing. I am building an ASP.NET MVC3 application
I'm implementing unit testing with PHPUnit on an existing codebase. I'm fairly new to
I am fairly new to unit testing and am using VS2010 to develop in
I'm fairly new to the unit testing world, and I just decided to add
My company is fairly new to unit testing our code. I've been reading about
I'm fairly new to unit testing but I completely get the idea of testing
I am a fairly new software developer currently working adding unit tests to an
I'm fairly new to unit testing but I'm trying to incorporate it into my

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.