Problems I have encountered with Unit Test Project ClsaTest for MSTest

Problems I have encountered with Unit Test Project ClsaTest for MSTest

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


CraigLittlewood posted on Tuesday, June 16, 2009

I am new to CSLA, and have recently downloaded version 3.6.3, along with the associated test project.  In the readme, it states the project can be run with either with NUnit, or MSTest.  I did not have NUnit installed, so attempted with MSTest by changing Build conditional compilation symbols.  However, I was unable to build the test project due to missing references to NUnit!

Example error below.

Error 5 The type or namespace name 'TestClassAttribute' could not be found (are you missing a using directive or an assembly reference?) C:\LWSDLSource\CSLA\cslatest\Csla.Test\DataPortal\AsynchDataPortalTest.cs 25 4 Cslacs.Test

Is this a known issue, or am I doing something wrong.

Regards

Craig

RockfordLhotka replied on Wednesday, June 17, 2009

Hmm. It is very likely that the readme is just out of date. It used to be the case that MStest would work.

But in 3.6 and higher we did a bunch of stuff for async tests and Silverlight functionality that may or may not work with MStest at all.

I've seriously thought about switching completely to MStest now that VS Pro includes the test runner. The problem is that it could take many, many days of effort to switch from nunit to MStest at this point, and I just don't have time - especially when nunit is free and works fine.

CraigLittlewood replied on Thursday, June 18, 2009

Rocky

Thanks for the prompt answer.  I have installed NUnit now (as you probably gathered from the post I made following this one!) and all is working.

Regards

Craig

Copyright (c) Marimer LLC