NSubstitute
ClosedXML
Our great sponsors
NSubstitute | ClosedXML | |
---|---|---|
11 | 26 | |
2,534 | 4,332 | |
2.5% | 2.7% | |
7.4 | 9.5 | |
20 days ago | 19 days ago | |
C# | C# | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
NSubstitute
-
The Moq-gate: You Either Die a Hero...
When comparing it to one of its most well-known alternatives, NSubstitute, which has "only" reached 85.6 million downloads, it is fair to say that Moq is the most widely used mocking library in the .NET ecosystem.
-
Since v4.20, Moq is harvesting email addresses
Maintainer rejected the PR. They have temporarily disabled the integration in https://github.com/moq/moq/pull/1375 but kept the SponsorLink project reference in the source code. It seems like their intent is to re-enable the integration at a later point :(
NSubstitute [0] might be an alternative. Or to fork Moq pre-4.20.
-
Setting up a simple testing project with C#
In terms of mocking there are several frameworks you can use, but I've mainly relied on Moq and NSubstitute. Within this demo, I'm going to use NSubstitute as I've found it a little easier to use.
- [AskJS] Can we talk about Stubs, Spies and Mocks in JavaScript and what a mess they are?
-
Coincidence? I think not
it will change the URL from https://github.com/nsubstitute/NSubstitute to https://github.dev/nsubstitute/NSubstitute (or you can just nav there yourself).
-
I need a C# crash course for experienced developers
NSubstitute
-
Moq vs NSubstitute: syntax cheat sheet
🔗 NSubstitute documentation | NSubstitute
-
My Top N Favorite Plugins and Tools for Developers
If you use NSubstitute (the best mocking .NET framework), then you have to install this small yet useful plugin right now. It kindly generates mocks and Arg.Is / Arg.Any.
-
Dot net libraries/tools that are usefull in many projects
Another nice mocking framework is NSubstitute https://nsubstitute.github.io/
-
Cell CMS - Criando testes de maneira prática
nsubstitute / NSubstitute
ClosedXML
-
When XML in Word Became Illegal
It's also country specific.
I work on Excel library and the text to number/date feature was one of less fun things to implement at least semi-correctly.
I remember my comment on the PR back then:
-
Visual Studio C#: Is it possible to manipulate Excel file via Visual Studio
It should be possible. Check out the ClosedXML library as a starting point.
Once installed, you can start using ClosedXML directly in your project. Go through their wiki for some sample codes based on what you are trying to achieve in your app.
-
Any tips on converting a XLSX file to HTML without using a licensed library?
Time to dig into those open xml docs. Honestly it’s not that bad once you get your bearings. ClosedXML offers a somewhat thin wrapper as well. I’ve used these with great success but they are quite low level.
- I need a Data-Grid that I can copy/paste excel data with
-
adding cell color in Excel file using c#
ClosedXML is an open wrapper around OOXML.
- How do I get Excel column data type with OpenXml?
-
Discovered a NuGet package called ClosedXML. Takes away the pain of dealing with OpenXML
It's open-source: https://github.com/ClosedXML/ClosedXML
-
cannot create an instance of the abstract type or interface. how to solve this ???
If you are trying to *create* Excel files, then you might take a look at [NPOI](https://github.com/nissl-lab/npoi) which is also open source with a permissive license. There is also [ClosedXml](https://github.com/ClosedXML/ClosedXML), which has these capabilities.
- Dot net libraries/tools that are usefull in many projects
What are some alternatives?
Open XML SDK - Open XML SDK by Microsoft
EPPlus
NPOI - a .NET library that can read/write Office formats without Microsoft Office installed. No COM+, no interop.
Moq - Repo for managing Moq 4.x [Moved to: https://github.com/moq/moq]
ExcelDataReader - Lightweight and fast library written in C# for reading Microsoft Excel files
AutoFixture - AutoFixture is an open source library for .NET designed to minimize the 'Arrange' phase of your unit tests in order to maximize maintainability. Its primary goal is to allow developers to focus on what is being tested rather than how to setup the test scenario, by making it easier to create object graphs containing test data.
DocX - Fast and easy to use .NET library that creates or modifies Microsoft Word files without installing Word.
MiniExcel - Fast, Low-Memory, Easy Excel .NET helper to import/export/template spreadsheet (support Linux, Mac)
FakeItEasy - The easy mocking library for .NET
Report-From-DocX-HTML-To-PDF-Converter - .NET Core library to create custom reports based on Word docx or HTML documents and convert to PDF
NUnit - NUnit Framework
Rhino Mocks