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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:37:16+00:00 2026-06-14T18:37:16+00:00

For unit testing in C#, I see the point from the idea of when

  • 0

For unit testing in C#, I see the point from the idea of when implementing a new feature or begning a new solution, its better to start with the unit testing from then.

But when there is a fully fledged solution already established with little or no Unit Tests created, what is the point in testing when there is a more than adequate exception handling in place already ?

Im writing unit tests but fail to see the point when i cant pass through malformed data ANYWAY into anything im testing as i have used ENUM’s mostly!

Unless I missing something absolutely crazy.. Am I wasting time going back to older code to integrate Unit Tests ?

  • 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-06-14T18:37:17+00:00Added an answer on June 14, 2026 at 6:37 pm

    Writing unit tests for existing code is helpful when you’re currently or in the future going to work at it. The tests help you make sure that you’re not introducing any new bugs or unwillingly change some behavior.

    Also, writing tests for existing code can help determining the actual functionality of possibly unknown or complicated implementations.

    In the unlikely case of bug-free software that will never be touched by a developer again adding unit tests probably won’t help you much. But in any other case it helps document the behavior and establish a safety net for the future.

    Oh, and since you mention it: Using enums won’t protect you from passing invalid arguments in C#.

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

Sidebar

Related Questions

I've recently decided to start using some light unit testing to see if it
I'm doing some unit testing, and some of the code is checking to see
I'm new with unit testing in visual studio and I want to load a
I am new to unit testing and TDD and mocking in general, however the
I'm new in unit testing so may be I do something wrong. I have
I am new to unit testing, and would like to know how you would
People at my company see unit testing as a lot of extra work, that
Generally, I'm still very much a unit testing neophyte. BTW, you may also see
I am new to unit testing, just getting into it using Check for C.
My company is fairly new to unit testing our code. I've been reading about

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.