This is a migrated thread and some comments may be shown as answers.

Debugging test

1 Answer 98 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michel Corbin
Top achievements
Rank 1
Michel Corbin asked on 31 Dec 2010, 03:03 PM
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.

1 Answer, 1 is accepted

Sort by
0
Michel Corbin
Top achievements
Rank 1
answered on 31 Dec 2010, 03:19 PM
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.
Tags
General Discussions
Asked by
Michel Corbin
Top achievements
Rank 1
Answers by
Michel Corbin
Top achievements
Rank 1
Share this question
or