By Developers, For Developers

Historical errata for Pragmatic Unit Testing in C# with NUnit

PDF PgPaper PgTypeDescriptionFixed onComments
2323SUGGEST

Last paragraph, “edges occur when when”: remove extra “when”

2005-11-24
6969SUGGEST

ShoppingCart should inherit from IEnumerable; return
type of GetEnumerator() should be IEnumerator

2005-11-24
7979SUGGEST

Fourth paragraph, www.mockobjects.org should be www.mockobjects.com

2005-11-24
105108SUGGEST

3rd paragraph, line 4: Replace “is” by “it”

2005-11-24
91TYPO

The source code has the title ‘TestMailer.cs’ and is indeed about testing a mailer. But the class is called ‘TestCalculator’ and the method ‘AgeCalculation’. I believe these names are copied from another sample.

15ERROR

line 13 in Largest.CS “max=Int32.MaxValue” declaring something this large would never allow the test test array {8, 9, 7} to output 9 when run.

28TYPO

“For for the rest of this book” has one “for” too many.

Categories: