IntelliTest and DbContext = Error Path Bounds Exceeded RRS feed

  • General discussion

  • Hi,

    (English is not my native language. Sorry for the mistakes.)

    I want to create tests for several functions in my Controller.

    At the top of my Controller I have this line :

    public class homeController : Controller
         public DatabaseContext DbContext = new DatabaseContext();

    But because of this line, all of my test end with the error "path bounds exceeded".

    Of course I could declare my context inside a function, but in this case, I will not be able to create intellitest for this function ..

    It is a bug ? Is there another way to do ?

    Thanks for your help.

    • Edited by Pierr_B Tuesday, April 10, 2018 3:54 PM
    Tuesday, April 10, 2018 3:53 PM