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 Test Driven Development with C#: Developing Real World Applications with TDD
This is the forum to discuss the Wrox book Professional Test Driven Development with C#: Developing Real World Applications with TDD by James Bender, Jeff McWherter; ISBN: 978-0-470-64320-4
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Test Driven Development with C#: Developing Real World Applications with TDD 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 January 13th, 2014, 10:28 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error trying to run app

I'm getting this error when I try to run the application.
a project with an output type of class library cannot be started directly.
My project compiled successfully but I don't know how to run the tests.
Reply With Quote
  #2 (permalink)  
Old March 7th, 2014, 01:14 PM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2014
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default RE:Error trying to run app

He didn't create a Test Project in the examples. The examples tell you to create class libraries. Your TicTacToe.UnitTests class will generate a TicTacToe.UnitTests.dll in your bin\Debug folder and will not run like an executable.

Download NUnit from here http://www.nunit.org/index.php?p=download

Once NUnit is installed, run it and create a new project. Save project. Then add an assembly (Project\Add Assembly...). Point to your TicTacToe.UnitTests.dll.

You should see the project hierarchy load to the left and you should be able to click the Run button to run the tests.
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
App throws error when run from network? Ron Howerton ASP.NET 3.5 Professionals 7 August 26th, 2010 10:48 AM
How to run app from network drive? nasimg VB.NET 1 January 25th, 2007 11:42 AM
app not run on ie6 czarnick BOOK: Professional Ajax ISBN: 978-0-471-77778-6 3 September 28th, 2006 05:40 AM
What Windows can VB .NET App run on ocarroll General .NET 6 February 27th, 2006 07:14 AM
Run CrystalReport.NET app in a remote server hpallavi Crystal Reports 0 February 24th, 2006 04:11 PM



All times are GMT -4. The time now is 12:26 PM.


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