NUnit with VS C# Express Edition... UnitTestFramework assembly reference problem.

NUnit with VS C# Express Edition... UnitTestFramework assembly reference problem.

Old forum URL: forums.lhotka.net/forums/t/6329.aspx


Preston posted on Wednesday, February 04, 2009

I am new to CSLA and NUnit.  The CLSA unit tests seemed like a good place to get acquainted with both.  So far I have...

  1. Downloaded and built CSLA 3.6 for C#
  2. Downloaded and installed NUnit 2.4.4
  3. Downloaded ansd opened the CSLA Test solution.
But, now I cannot build the Cslacs.Test project in the Test solution because of a reference to Microsoft.VisualStudio.QualityTools.UnitTestFramework.  It looks like this is the hook into the test framework for Visual Studio Team System.

I would sure appreciate any suggestions on how to move forward.

RockfordLhotka replied on Thursday, February 05, 2009

Two things.

First, any dependency on mstest can be removed if you are using nunit. I'm surprised that reference is there - but it shouldn't matter if you remove it.

Second, you do need UnitDriven from CodePlex (or in the Dependencies folder in the CSLA test download). But I don't think any of our stuff is in the namespace you mention.

Preston replied on Thursday, February 05, 2009

I removed the reference without problem.
I also had to remove and re-add the UnitDriveNET reference?
After that it built.

Unit tests are all green. : )

Thanks!

Copyright (c) Marimer LLC