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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:55:42+00:00 2026-05-11T05:55:42+00:00

I plan to introduce a set of standards for writing unit tests into my

  • 0

I plan to introduce a set of standards for writing unit tests into my team. But what to include?

These two posts (Unit test naming best practices and Best practices for file system dependencies in unit/integration tests) have given me some food for thought already.

Other domains that should be covered in my standards should be how test classes are set up and how to organize them. For example if you have class called OrderLineProcessor there should be a test class called OrderLineProcessorTest. If there’s a method called Process() on that class then there should be a test called ProcessTest (maybe more to test different states).

Any other things to include?

Does your company have standards for unit testing?

EDIT: I’m using Visual Studio Team System 2008 and I develop in C#.Net

  • 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. 2026-05-11T05:55:43+00:00Added an answer on May 11, 2026 at 5:55 am

    Have a look at Michael Feathers on what is a unit test (or what makes unit tests bad unit tests)

    Have a look at the idea of ‘Arrange, Act, Assert’, i.e. the idea that a test does only three things, in a fixed order:

    • Arrange any input data and processing classes needed for the test
    • Perform the action under test
    • Test the results with one or more asserts. Yes, it can be more than one assert, so long as they all work to test the action that was performed.

    Have a Look at Behaviour Driven Development for a way to align test cases with requirements.

    Also, my opinion of standard documents today is that you shouldn’t write them unless you have to – there are lots of resources available already written. Link to them rather than rehashing their content. Provide a reading list for developers who want to know more.

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

Sidebar

Related Questions

I plan on writing a Java 3D game that will work both on PC
I plan to write my first application using Entity Framework + Repository + Unit
I plan to make a Python game server but I can't see how to
I'm new both to Django and unit testing but since I'm starting a project
I plan on learning the ins and outs of mod_rewrite, but I have a
I plan to override a method in the subclass if a boolean is set
I plan on buying two domain names for the same site. Depending on which
My plan is to create a a two-pane page using ASP MVC 3. The
I plan to include google map using javascript api to show search results for
I plan on digging into one of the open source IoC containers to really

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.