Comments (4)
Resolved issue by using NuGet Package Manager to download Moq v4.9.0, with its dependencies, from nuget.org via Visual Studio directly into my Unit Test project. Did not bother to compile version from GitHub.
from labs.
@navyjax2: Seems like you reported at the wrong repo. If you're talking about Moq v4, visit https://github.com/moq/moq4. This here repository is for Moq v5 (which is still being developed).
That being said you appear to have run into a failed NuGet package restore. Should've been easy enough to resolve by triggering the Build once more, or perhaps by reopening the solution. That's quite possibly just one of the usual VS glitches.
If you just want to use Moq (and not actually modify / bugfix / develop with its source) then consuming the precompiled Moq NuGet package is definitely the right way to go.
from labs.
This is something I should improve in this repo anyway, I think... Will keep it open for now
from labs.
Yeah, I think I just needed Moq v4, instead, since 5 is obviously still under development. Once I consumed v4 via NuGet install, I was fine. But like kzu said, it's valid to ensure that Git dependencies are taken care of.
from labs.
Related Issues (20)
- 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
- 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
- Xunit: Moq Setup doesn't return expected value HOT 3
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.