Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Gary Devenay 39 posts 245 karma points
    Aug 12, 2015 @ 10:36
    Gary Devenay
    0

    Umbraco 7.2.5 BaseRoutingTest

    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?

    Gary

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies