Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional Application Lifecycle Management with Visual Studio 2010
This is the forum to discuss the Wrox book Professional Application Lifecycle Management with Visual Studio 2010 by Mickey Gousset, Brian Keller, Ajoy Krishnamoorthy, Martin Woodward; ISBN: 9780470484265
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Application Lifecycle Management with Visual Studio 2010 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 13th, 2011, 09:26 AM
Registered User
 
Join Date: Aug 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question Chapter 7 Unit Testing with the Unit Test Framework - examples

Hi,
I think chapter 7 is good but can anyone point me to some C# code/application which uses the unit test framework so I can see a working example of how some of it's features are really used.
Thanks
 
Old September 24th, 2011, 10:07 AM
Registered User
Points: 9, Level: 1
Points: 9, Level: 1 Points: 9, Level: 1 Points: 9, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2011
Location: Minneapolis, Minnesota, USA
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Some suggestions for learning automated testing

I wish you the best in learning automated testing. It is one of our most powerful tools to prevent regression and uncover missing and misunderstood requirements. If you have these concerns, then it is worth learning about this topic.

What programming language is your favorite? I suggest you search on Google for the words (TDD using XXX) where XXX is your favorite language. This will give you lots of examples of excellent testing practices.

Have you performed the exercise in Chapter 7 for yourself? If not, I encourage you to create the Functions class and the FunctionsTest, and gain some practice. Coding and running the tests will be much more useful than merely reading about it.

If you want another tutorial to gain additional reinforcement, see this article http://msdn.microsoft.com/en-us/gg454254.

Automated testing is a widely used practice. I believe that if you practice these two tutorials, you will be able to see how you might apply this to testing your own work. As the book's introduction states, this book is not aimed at beginners. So those unfamiliar with basic automated testing practices will need to look elsewhere to learn more. That is why I gave you the link above. It provides some additional references.

If you simply want to see how other people write real tests, you can find some open source projects and if they are any good, they are likely to have automated tests. For example, I Googled open source c# and came up with a Content Management System called cayuhoga. I browsed their source tree and found examples of their test at https://github.com/cuyahogaproject/c...ts/Core/Domain. I am willing to bet that most open source projects have some automated tests. If you download and build any of them, you can explore them on your own.

It sounds as if you do not have a fellow programmer who knows about this. The fastest way to learn it is to work with another programmer who has done testing before and can demonstrate how it is done. But we can teach ourselves as well. That is how I learned it years ago.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 7: Unit Testing with the Unit Testing Framework antwarpes BOOK: Professional Application Lifecycle Management with Visual Studio 2010 3 September 25th, 2011 08:47 AM
Unit Testing jeffmorris BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 7 May 14th, 2007 06:51 AM
Unit Testing userrob BOOK: ASP.NET Website Programming Problem-Design-Solution 2 November 9th, 2005 10:35 AM
Unit Testing XSLT N.Todd XSLT 2 March 1st, 2005 08:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.