Research libraries for more efficient mockup-generation #448

Closed
opened 2026-04-20 12:40:00 +00:00 by a24vinla · 3 comments
Collaborator

Please post alternatives in the comments. Include short descriptions of the library and some pros/cons.

Please post alternatives in the comments. Include short descriptions of the library and some pros/cons.
a24vinla changed title from Research regarding library for more efficient mockup-generation to Research libraries for more efficient mockup-generation 2026-04-20 12:44:05 +00:00
Collaborator

After doing research trying to find a suitable packed to facilitate mocking of objects in C# the conclusion were made that Moq is suitable.
First of all Moq appears to be one of the most popular mocking library for .NET. On there website they state that total nr of downloads are 1.1B and daily average of 544.7K. The website also lists examples of git repositories using this dependency.

Secondly there exists a lot of articles describing how Moq can be used in combination with xUnit. These artifices usually describes how one can create good unit test using both dependencies.

Thirdly whens searching for mocking libraries to uses with xunit almost all of the articles recommend using moq.

After doing research trying to find a suitable packed to facilitate mocking of objects in C# the conclusion were made that [ Moq ](https://www.nuget.org/packages/Moq) is suitable. First of all Moq appears to be one of the most popular mocking library for .NET. On there [website ](https://www.nuget.org/packages/Moq) they state that total nr of downloads are 1.1B and daily average of 544.7K. The website also lists examples of git repositories using this dependency. + [microsoft/PowerToys](https://github.com/microsoft/PowerToys) + [jellyfin](https://github.com/jellyfin/jellyfin) + [DevToys-app/DevToys](https://github.com/DevToys-app/DevToys) All of these repositories are large and active, so if they accept this dependency, the risk of it suddenly disappearing is small. Secondly there exists a lot of articles describing how Moq can be used in combination with xUnit. These artifices usually describes how one can create good unit test using both dependencies. Thirdly whens searching for mocking libraries to uses with xunit almost all of the articles recommend using moq.
Collaborator

Review:

The research concludes a reasonable justification of using Moq. However, there are some areas where the research can improve.

Adding other alternatives for comparison

You mentioned that Moq is suitable without naming other alternatives, so add other options than Moq to compare and strengthen your conclusion.

Add other technical arguments

Your main argument is about popularity. While it is useful, it does not demonstrate technical suitability. Add argument like:

  • Ease of use
  • Flexibility
  • compatibility
  • learning curve

Technical Explanation

You mentioned that Moq can be used in combination with xUnit but didn't explain how or why it is a good fit.
Add a short explanation and example.

# Review: The research concludes a reasonable justification of using Moq. However, there are some areas where the research can improve. ## Adding other alternatives for comparison You mentioned that Moq is suitable without naming other alternatives, so add other options than Moq to compare and strengthen your conclusion. ## Add other technical arguments Your main argument is about popularity. While it is useful, it does not demonstrate technical suitability. Add argument like: - Ease of use - Flexibility - compatibility - learning curve ## Technical Explanation You mentioned that Moq can be used in combination with xUnit but didn't explain **how** or why it is a good fit. Add a short explanation and example.
Collaborator
  • The reason why no other alternatives were given before where that i needed to go to google site 2 to get any other options. After a while i found JustMockLite which is a free version of JustMock. The free version has 166 stars on git moq has 6400 stars and is clearly used by large software project like jellyfin. Barbecue JustMockLite just is a free version the company may choose to abandon it because it does not generate any revenue.
  • When it comes to other arguments as ease of use its harder to compare. Personally i think moq is easier to understand but that is just personal preference. because almost all of the articles i found on the subject references moq it is going to be easier to find guides on how to use it.
  • When doing researcher i fond a lot of articles explicitly describing and showing how xuint and moq both can be used in combination.
  • It's quite hard to determine the learning curve of the different libraries. moq states on there git "The most popular and friendly mocking library for .NET" but they may have an alternative agenda. Both of the libraries have very similar syntax. I would give the edge to moq becuase the peripheral of articles describing how to us it.
+ The reason why no other alternatives were given before where that i needed to go to google site 2 to get any other options. After a while i found JustMockLite which is a free version of JustMock. The free version has 166 stars on git moq has 6400 stars and is clearly used by large software project like jellyfin. Barbecue JustMockLite just is a free version the company may choose to abandon it because it does not generate any revenue. + When it comes to other arguments as ease of use its harder to compare. Personally i think moq is easier to understand but that is just personal preference. because almost all of the articles i found on the subject references moq it is going to be easier to find guides on how to use it. + When doing researcher i fond a lot of articles explicitly describing and showing how xuint and moq both can be used in combination. + It's quite hard to determine the learning curve of the different libraries. moq states on there git _"The most popular and friendly mocking library for .NET"_ but they may have an alternative agenda. Both of the libraries have very similar syntax. I would give the edge to moq becuase the peripheral of articles describing how to us it.
Sign in to join this conversation.
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K#448
No description provided.