Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional Software Testing with Visual Studio 2005 Team System ISBN: 978-0-470-14978-2
This is the forum to discuss the Wrox book Professional Software Testing with Visual Studio 2005 Team System: Tools for Software Developers and Test Engineers by Tom Arnold, Dominic Hopton, Andy Leonard, Mike Frost; ISBN: 9780470149782
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Software Testing with Visual Studio 2005 Team System ISBN: 978-0-470-14978-2 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old August 15th, 2008, 03:57 PM
Registered User
 
Join Date: Aug 2008
Location: Kazan, , Russia.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to daydream
Default Error in sample code

What if we start listing errors in sample code here?

I've found two in Chapter 4 (Testing the Database).

In a big piece of code on pages 116-118 are the following (bottom of p.117):

1. DataTable table = result.DataSet.Tables[0];
Using constant here is incorrect, should use (ResultSet-1) instead of 0:
   DataTable table = result.DataSet.Tables[ResultSet-1];


and three lines below

2. _colCount = _columnList.Split(new char[] { _delimiter }).Length + 1;
should not actually have that +1 in the end, i.e. correct is
   _colCount = _columnList.Split(new char[] { _delimiter }).Length;
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in Chapter 11 Sample Code josevi BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 1 February 1st, 2008 12:43 PM
ListView Sample code - error? Mithrandir VB.NET 2002/2003 Basics 0 August 10th, 2003 12:33 PM



All times are GMT -4. The time now is 01:25 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.