Click here to Skip to main content
15,924,317 members
Articles / Programming Languages / C#

Using Multiple Asserts in One Test Considered Helpful

Rate me:
Please Sign up or sign in to vote.
4.08/5 (4 votes)
1 Mar 2009CPOL3 min read 37.3K   48   2  
One TDD mantra is that there should be only one "assert" per test. Here is a finance/trading example where that doesn't work very well.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
I've been a software developer since 1996 and have enjoyed C# since 2003. I have a Bachelor's degree in Computer Science and for some reason, a Master's degree in Business Administration. I currently do software development contracting/consulting.

Comments and Discussions