Moq
Trust issue Needs checking
Moq's licence never changed, but version 4.20.0 shipped SponsorLink, which collected a hash of developers' Git email addresses during builds. It was later removed, but many teams moved away.
- Was
- BSD-3-Clause
- Now
- Licence unchanged (BSD-3-Clause)
- Last free version
4.18.4- Changed
- Aug 2023
- NuGet
- Moq (latest 4.21.0, 1.3B downloads)
- Source
- github.com/devlooped/moq
Free alternatives
Popular mocking library with a simple syntax.
NuGet: NSubstitute
Mature mocking library.
NuGet: FakeItEasy
Mocking library from the TUnit testing framework.
NuGet: TUnit.Mocks
Staying on the last free version
Pin the exact version so an update can't move you onto the paid licence by accident:
<PackageReference Include="Moq" Version="[4.18.4]" />A pinned version gets no new fixes. Check for security advisories before relying on it long term.
Notes
- Moq is still open source and still free. This entry is here because many people ask about it.
Sources
Something wrong or out of date? Edit this page on GitHub.