Unit tests failing if running entire suite

Unit tests failing if running entire suite

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


ajj3085 posted on Wednesday, November 20, 2013

We're introducing Csla into some existing solutions and I'm writing tests for some Csla command objects.  The tests run fine individually, but if I try to run the entire suite of tests for the other code in the libraries, the DataPortal throws a SerializationException.

 System.Runtime.Serialization.SerializationException : Unable to find assembly XYZ.Common.Business, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
   at Csla.DataPortal`1.Update(T obj) in d:\Visual Studio Projects\MarimerLLC\csla\Source\Csla\DataPortalT.cs: line 819
   at XYZ.Common.Business.Commands.CheckIfEmailInUse.IsEmailInUse(Int32 Id, String email) in CheckIfEmailInUse.cs: line 85
   at XYZ.Test.Common.Commands.CheckIfEmailInUseSpecs.Because() in CheckIfEmailInUseSpecs.cs: line 54

I'm running the tests through R# 8 (the latest build) in VS2012.  Any ideas?

Copyright (c) Marimer LLC