{"repo":"nsubstitute/NSubstitute","free":true,"listed":false,"github":"https://github.com/nsubstitute/NSubstitute","clone":"git clone https://github.com/nsubstitute/NSubstitute.git","description":"A friendly substitute for .NET mocking libraries.","language":"C#","stars":2970,"topics":["c-sharp","dotnet","dot-net","testing","testing-tools","test","mocking","mock","dotnet-core","dotnetcore"],"license":null,"category":"dev-tools","readme_excerpt":"NSubstitute ======== Visit the NSubstitute website for more information. What is it? NSubstitute is designed as a friendly substitute for .NET mocking libraries. It is an attempt to satisfy our craving for a mocking library with a succinct syntax that helps us keep the focus on the intention of our tests, rather than on the configuration of our test doubles. We've tried to make the most frequently required operations obvious and easy to use, keeping less usual scenarios discoverable and accessible, and all the while maintaining as much natural language as possible. Perfect for those new to testing, and for others who would just like to to get their tests written with less noise and fewer lambdas. Installation NSubstitute package Optional Roslyn analysers (recommended): For C# projects: NSubstitute.Analyzers.CSharp For VB projects: NSubstitute.Analyzers.VisualBasic Getting help If you have questions, feature requests or feedback on NSubstitute please raise an issue on our project site. All questions are welcome via our project site, but for \"how-to\"-style questions you can also try [StackOverflow with the \\[nsubstitute\\] tag](https://stackoverflow.com/tags/nsubstitute), which often leads to very good answers from the larger programming community. StackOverflow is especially useful if your question also relates to other libraries that our team may not be as familiar with (e.g. NSubstitute with Entity Framework). Basic use Let's say we have a basic calculator interface: We can a","default_branch":null,"files":null,"tree":[],"storefront":"/r/nsubstitute","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nsubstitute/NSubstitute/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}