charlie poole videos ~~ ASP.NET MVC Pair Programming ~~ ???? ~~ question about using NUnit with ASP.NET MVC "official" Beta

9 views
Skip to first unread message

gerry lowry

unread,
Oct 27, 2008, 3:43:04 PM10/27/08
to NUnit-Discuss, gerry...@abilitybusinesscomputerservices.com
I've downloaded five videos from Microsoft ... Charlie Poole and
Stephen Walther
provide an introduction to unit testing ... my plan was to use the
FREE Microsoft Visual Web Developer 2008 SP1(a)
with NUnit and build along with Charlie and Stephen.

AFAIK, ASP.NET MVC (now in "official beta") is a .Net 3.5
application.

From the file names (b) at the NUnit download page, -- <http://
www.nunit.org/index.php?p=download>
it appears NUnit does not support .Net 3.5.

I: assume that somehow NUnit for .Net 2.0 will be useable with ASP.NET
MVC "official" Beta for .Net 3.5. (c)
I've not yet watched the c. two hours of Charlie and Stephen. As a
believer in
fore warned is fore armed, my question is:

What's the process to have NUnit for .Net 2.0 work with
ASP.NET MVC "official" Beta for .Net 3.5.?

Please advise.

Thank you.

Regards, Gerry

P.S.: Links to Charlie and Stephen videos, see (d) below.
---------------------------------------------------------------------------------------------------------

(a) ASP.NET MVC requires SP1 to work with Visual Web Developer 2008.
<http://www.asp.net/mvc/>
<http://www.microsoft.com/express/product/default.aspx>
<http://www.microsoft.com/express/vwd/>
-------------------------

(b)
NUnit 2.4.8 (Recommended)
win .net 1.1 -- NUnit-2.4.8-net-1.1.msi ~~ <http://
prdownloads.sourceforge.net/nunit/NUnit-2.4.8-net-1.1.msi?download>
win .net 2.0 -- NUnit-2.4.8-net-2.0.msi ~~ <http://
prdownloads.sourceforge.net/nunit/NUnit-2.4.8-net-2.0.msi?download>
bin .net 1.1 -- NUnit-2.4.8-net-1.1.zip ~~ <http://
prdownloads.sourceforge.net/nunit/NUnit-2.4.8-net-1.1.zip?download>
bin .net 2.0 -- NUnit-2.4.8-net-2.0.zip ~~ <http://
prdownloads.sourceforge.net/nunit/NUnit-2.4.8-net-2.0.zip?download>
src NUnit-2.4.8-src.zip ~~ <http://
prdownloads.sourceforge.net/nunit/NUnit-2.4.8-src.zip?download>
doc NUnit-2.4.8-doc.zip ~~ <http://
prdownloads.sourceforge.net/nunit/NUnit-2.4.8-doc.zip?download>
---------------

(c) Microsoft ASP.NET MVC Beta
<http://www.microsoft.com/downloads/details.aspx?
FamilyId=A24D1E00-CD35-4F66-BAA0-2362BDDE0766&displaylang=en>
---------------

(d)
ASP.NET MVC Pair Programming
#1 | Episode 1 with Charlie Poole - Generating User
Stories 13 minutes, 38 seconds
#2 | Episode 2 with Charlie Poole - Creating Unit Tests with
NUnit 20 minutes, 54 seconds
#3 | Episode 3 with Charlie Poole - Returning Blog
Entries 19 minutes, 3 seconds
#4 | Episode 4 with Charlie Poole - Unit Testing the
Model 26 minutes, 59 seconds
#5 | Episode 5 with Charlie Poole - Viewing a Page and Final
Thoughts 30 minutes, 34 seconds

#1 | Episode 1 http://www.asp.net/learn/mvc-videos/video-405.aspx
#2 | Episode 2 http://www.asp.net/learn/mvc-videos/video-406.aspx
#3 | Episode 3 http://www.asp.net/learn/mvc-videos/video-407.aspx
#4 | Episode 4 http://www.asp.net/learn/mvc-videos/video-408.aspx
#5 | Episode 5 http://www.asp.net/learn/mvc-videos/video-409.aspx

#1 | Episode 1 with Charlie Poole - Generating User
Stories 13 minutes, 38 seconds
Stephen Walther and Charlie Poole discuss the ASP.NET MVC Blog
application.
They start by generating a small number of user stories that represent
how the customer will interact with the Blog application.

#2 | Episode 2 with Charlie Poole - Creating Unit Tests with
NUnit 20 minutes, 54 seconds
Stephen Walther and Charlie Poole create the ASP.NET MVC application
with Visual Studio and run their first unit tests with NUnit.
Charlie Poole explains that you can take shorter or longer steps when
testing depending on your confidence level.

#3 | Episode 3 with Charlie Poole - Returning Blog
Entries 19 minutes, 3 seconds
Stephen Walther and Charlie Poole build tests that verify that their
blog can return blog entries.
They build unit tests for the case when there are no entries returned
and the case when a single entry is returned.

#4 | Episode 4 with Charlie Poole - Unit Testing the
Model 26 minutes, 59 seconds
Stephen Walther and Charlie Poole build classes that represent their
blog and blog entries.
Charlie Poole also demonstrates some useful NUnit tricks.

#5 | Episode 5 with Charlie Poole - Viewing a Page and Final
Thoughts 30 minutes, 34 seconds
[final episode] Stephen Walther and Charlie Poole successfully view
blog entries in a page and all of their tests are green.
This episode ends with Charlie Poole's thoughts on the process that
they followed and ASP.NET MVC.


gerry...@abilitybusinesscomputerservices.com

Charlie Poole

unread,
Oct 27, 2008, 5:00:57 PM10/27/08
to nunit-...@googlegroups.com
Hi Gerry,

Since .NET 3.5 is really still 2.0 with some extra assemblies,
the .NET 2.0 downloads of NUnit work with it - no problem there.

Since I haven't myself used Visual Web Developer, I can't tell
you much there.

Charlie

Tuna Toksöz

unread,
Oct 27, 2008, 4:41:21 PM10/27/08
to nunit-...@googlegroups.com
3.5 fully supports 2.0 so you can use nunit to test 3.5 codes. Nothing specific is needed.
--
Tuna Toksöz

Typos included to enhance the readers attention!

Andreas Schlapsi

unread,
Oct 27, 2008, 6:27:57 PM10/27/08
to NUnit-Discuss
Hi,

ASP.NET MVC can be used with Microsoft Visual Web Developer 2008 SP1
(VWD). But when you create an ASP.NET MVC project VWD does not ask to
create a unit test project. You can add a new class library project
and after adding the references to NUnit.Framework.dll and the MVC
project you can test your controllers.

By default VWD hides the solution if there is only one project. Going
to "Tools => Options..." and clicking on "Show all settings" you can
find under "Projects and Solutions => General" the option "Always show
solution" which changes this behaviour.

Andreas
> #5 | Episode 5http://www.asp.net/learn/mvc-videos/video-409.aspx
> gerry.lo...@abilitybusinesscomputerservices.com
Reply all
Reply to author
Forward
0 new messages