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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:16:58+00:00 2026-05-12T06:16:58+00:00

Jimmy Bogard, wrote an article: Getting value out of your unit tests , where

  • 0

Jimmy Bogard, wrote an article: Getting value out of your unit tests, where he gives four rules:

  • Test names should describe the what and the why, from the user’s perspective
  • Tests are code too, give them some love
  • Don’t settle on one fixture pattern/organizational style
  • One Setup, Execute and Verify per Test

In your opinion these guidelines are complete? What are your guidelines for unit tests?
Please avoid specific language idioms, try to keep answers language-agnostic .

  • 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-12T06:16:58+00:00Added an answer on May 12, 2026 at 6:16 am

    There’s an entire, 850 page book called xUnit Test Patterns that deal with this topic, so it’s not something that can be easily boiled down to a few hard rules (although the rules you mention are good).

    A more digestible book that also covers this subject is The Art of Unit Testing.

    If I may add the rules I find most important, they would be:

    • Use Test-Driven Development. It’s the by far the most effective road towards good unit tests. Trying to retrofit unit tests unto existing code tend to be difficult at best.
    • Keep it simple: Ideally, a unit test should be less than 10 lines of code. If it grows to much more than 20 lines of code, you should seriously consider refactoring either the test code, or the API you are testing.
    • Keep it fast. Unit test suites are meant to be executed very frequently, so aim at keeping the entire suite under 10 s. That can easily mean keeping each test under 10 ms.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to unit test a custom action result. I recently watched Jimmy Bogard's
I am refering to this article from Jimmy Bogard He is suggesting two projects
I am referring to this project by Jimmy Bogard: http://www.codeplex.com/AutoMapper The code repository site
I have names like this: $str = 'JAMES JIMMY SMITH' I run strtolower ,
Hey guys, so I have two arrays $names = array('jimmy', 'johnny', 'sarah'); $ages= array('16',
After reading ASP.NET MVC 2 in Action and watching Jimmy Bogard's presentation from MvcConf
Reading some posts from Jimmy Boggard and wondering - how exactly is it possible
I believe Jimmy Nillson said he generally made his webservices singletons. Is this the
I have user table ID Name 1 Michael 2 Jimmy if i do a
I have a GridView with some columns. If exist a value in my database,

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.