I am currently writing some unit tests for my Umbraco controllers, I am extending BaseRoutingTest from the Umbraco.Tests.dll.
I have already written some tests for my WebApi controllers using BaseUmbracoApplicationTest and the UmbracoContext.EnsureContext method, but this doesn't seem to work for standard Web MVC controllers.
I am receiving the following errors:
SetUp : System.ArgumentNullException : Value cannot be null. Parameter name: virtualPath
TearDown : System.ArgumentException : Unable to find the requested .Net Framework Data Provider. It may not be installed.
Has anyone managed to run standard MVC controller unit tests using this method? If not - what solutions are you currently using?
Umbraco 7.2.5 BaseRoutingTest
I am currently writing some unit tests for my Umbraco controllers, I am extending
BaseRoutingTest
from theUmbraco.Tests.dll
.I have already written some tests for my WebApi controllers using
BaseUmbracoApplicationTest
and theUmbracoContext.EnsureContext
method, but this doesn't seem to work for standard Web MVC controllers.I am receiving the following errors:
Has anyone managed to run standard MVC controller unit tests using this method? If not - what solutions are you currently using?
Gary
is working on a reply...