Comments (5)
@kendallb, you're asking at the wrong repository, Moq 4.x is over at moq/moq4. This here is the repo for Moq vNext.
from labs.
That said, you need to simply adjust your VS debugger settings under Tools > Options. Do either of those:
-
Enable SourceLink support. Then, instead of just complaining that there are no files under that path, the debugger will automatically fetch them from GitHub and allow you to step into it.
-
Enable Just My Code. This should make the debugger ignore Moq's debug symbols completely.
from labs.
I will ask the question on the moq4 area, but I already have Just My Code enabled. The core issue is the NuGet package is compiled in full debug mode from the way it is behaving. It is one thing to include PDB symbols but another to compile in full debug mode where it will try to find source files on your local system.
from labs.
Well I turned on source symbol support in VS2015 and it simply crashed trying to find the source files.
But at the end of the day IMHO this is wrong. Moq is a mocking engine so when I am debugging my unit tests the last thing I want to do when I step into something that Moq is hiding in front of as a proxy is to be suddenly debugging into the Moq code itself? I don't care about the Moq code at that point, I just want to step into the function on the other end of the proxy that is my test function.
This is how it used to work in Moq so IMHO this a step backwards.
from labs.
@kendallb - Please let's move this discussion to devlooped/moq#483.
from labs.
Related Issues (20)
- Xunit: Moq Setup doesn't return expected value HOT 3
- Doesn't work on internal packages HOT 2
- Build: ensure that code generating tasks are idempotent HOT 1
- Build: consider getting rid of inline tasks in the build HOT 3
- Moq does not mock 'Explicit Interface Implementation' and 'protected virtual' correctly HOT 1
- Does not compile in VS Community 2017 - The target "GitVersion" does not exist in the project HOT 4
- Adding `Callback` to a mock breaks async tests HOT 2
- Generate API overloads for delegate-based setups
- Feature request: create mocks without requiring empty constructor/passing parameters HOT 2
- To have an interface Mock use existing implementation logic, devs should be able to provide an implementation class HOT 6
- How can I build this project on mac os x?
- Assert.Throws overloads for message verification and additional matching with expression HOT 2
- Add support for protected members HOT 3
- Avoid having to await ReturnsAsync HOT 4
- GitHub Actions
- Add support for logging via Mock HOT 5
- Add support for being able to proxy existing class instance HOT 3
- Add support for autocomplete
- Failing to build on main HOT 1
- Allow Access to Protected Class Members
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from labs.