Wrox Programmer Forums
|
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 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 January 13th, 2014, 11:28 AM
Registered User
 
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.
 
Old March 7th, 2014, 02:14 PM
Registered User
 
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.





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 12:42 PM
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 08:14 AM
Run CrystalReport.NET app in a remote server hpallavi Crystal Reports 0 February 24th, 2006 05:11 PM





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