Debugging test

2 posts, 0 answers
  1. Michel Corbin
    Michel Corbin avatar
    20 posts
    Member since:
    Apr 2010

    Posted 31 Dec 2010 Link to this post

    Hi,

    In Visual Studio, my shortcut to "Step into" while I'm debugging is F8.

    When I'm into a test in debug mode and I press F8 to step into and when I'm on a line like Mock.Arrange or any other instruction using JustMock, the system is trying to enter in the code of JustMock. 

    In my visual studio, I have enable just my code in debugging options.

    I have no problem with any other third party control in the sens that F8 don't try to step into the code of the third party.

    It's very weird.

    Here is what it show in the immediate when I press F8 on a line with JustMock instruction:

    Step into: Stepping over non-user code 'System.Linq.Expressions.Expression.Constant'
    A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
    Step into: Stepping over non-user code 'Telerik.JustMock.Mock.<bool>.'

    Public Sub Execute_SimpleRequest_ReturnsTrue()
       Dim executor As New DatabaseExecutor
     
       executor.Connection = New Connection
     
       Mock.Arrange(Function() executor.Connection.Open).Returns(True)
     
       Assert.AreEqual(True, executor.Execute)
    End Sub

    These messages are shown on the line Mock.Arrange....

    The reason why I use Step into instead of Step over is just because I want systematically to enter in any functions of my code. Remember before answering that I have no problem with other third party like your, Infragistics, DevExpress, ActiveReports, etc...

    Thank you very much.
  2. Michel Corbin
    Michel Corbin avatar
    20 posts
    Member since:
    Apr 2010

    Posted 31 Dec 2010 Link to this post

    Ok, forget my post.

    I use your Free Edition and I remarked that you have shipped the pdb files.

    I removed it and it's now work perfectly.
  3. DevCraft R3 2016 release webinar banner
Back to Top