Visual Studio 2012 testing with csla and entity framework

Posted by Jamie Altizer on Stack Overflow See other posts from Stack Overflow or by Jamie Altizer
Published on 2012-08-22T13:05:36Z Indexed on 2012/10/05 3:38 UTC
Read the original article Hit count: 192

In VS2010 my MSTest test run just fine.

When running in VS2012 I am getting an error. The test sets the Csla.ApplicationContext.User with a Custom Business Principal. When EntityFramework is asked to provide a new ObjectContext I receive a SerializationException saying that my Custom Business Principal type cannot be found.

So far all tests that use EntityFramework fail when running through VS2012's test runner or Resharper7's test runner. I have tried NCrunch's test runner and they all pass.

Thank you in advance.

© Stack Overflow or respective owner

Related posts about c#

Related posts about mstest