11 best C# Testing Data libraries in 2024

share link

by marketing.admin@openweaver.com dot icon Updated: Jan 3, 2023

technology logo
technology logo

Guide Kit Guide Kit  

The first step in unit testing is to isolate the piece of code to be tested. This is done by placing it into a class or function library. Testing data is important for the effectiveness of this isolation because it allows developers to verify that their code works properly in a variety of scenarios. One way to do this would be by manually entering them as arguments every time you want to run one of your test cases - which can get tedious very quickly! A faster option would be using Test Data Libraries (TDLs). Let’s see the 11 best open-source C# Testing Data Libraries in 2022: GenFu - generate realistic test data; AutoFixture - open source library for .NET designed; Bogus - sane fake data generator.

Bogusby bchavez

C# doticonstar image 7300 doticonVersion:v34.0.2doticon
License: Others (Non-SPDX)

:card_index: A simple fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.

Support
    Quality
      Security
        License
          Reuse

            Bogusby bchavez

            C# doticon star image 7300 doticonVersion:v34.0.2doticon License: Others (Non-SPDX)

            :card_index: A simple fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.
            Support
              Quality
                Security
                  License
                    Reuse

                      AutoFixtureby AutoFixture

                      C# doticonstar image 3016 doticonVersion:v4.18.0doticon
                      License: Permissive (MIT)

                      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.

                      Support
                        Quality
                          Security
                            License
                              Reuse

                                AutoFixtureby AutoFixture

                                C# doticon star image 3016 doticonVersion:v4.18.0doticon License: Permissive (MIT)

                                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.
                                Support
                                  Quality
                                    Security
                                      License
                                        Reuse

                                          Verifyby VerifyTests

                                          C# doticonstar image 1944 doticonVersion:20.2.0doticon
                                          License: Permissive (MIT)

                                          Verify is a snapshot tool that simplifies the assertion of complex data models and documents.

                                          Support
                                            Quality
                                              Security
                                                License
                                                  Reuse

                                                    Verifyby VerifyTests

                                                    C# doticon star image 1944 doticonVersion:20.2.0doticon License: Permissive (MIT)

                                                    Verify is a snapshot tool that simplifies the assertion of complex data models and documents.
                                                    Support
                                                      Quality
                                                        Security
                                                          License
                                                            Reuse

                                                              GenFuby MisterJames

                                                              C# doticonstar image 804 doticonVersion:1.6.0doticon
                                                              License: Others (Non-SPDX)

                                                              GenFu is a library you can use to generate realistic test data. It is composed of several property fillers that can populate commonly named properties through reflection using an internal database of values or randomly created data. You can override any of the fillers, give GenFu hints on how to fill them.

                                                              Support
                                                                Quality
                                                                  Security
                                                                    License
                                                                      Reuse

                                                                        GenFuby MisterJames

                                                                        C# doticon star image 804 doticonVersion:1.6.0doticon License: Others (Non-SPDX)

                                                                        GenFu is a library you can use to generate realistic test data. It is composed of several property fillers that can populate commonly named properties through reflection using an internal database of values or randomly created data. You can override any of the fillers, give GenFu hints on how to fill them.
                                                                        Support
                                                                          Quality
                                                                            Security
                                                                              License
                                                                                Reuse

                                                                                  NBiby Seddryck

                                                                                  C# doticonstar image 101 doticonVersion:v1.23doticon
                                                                                  License: Permissive (Apache-2.0)

                                                                                  NBi is a testing framework (add-on to NUnit) for Business Intelligence and Data Access. The main goal of this framework is to let users create tests with a declarative approach based on an Xml syntax. By the means of NBi, you don't need to develop C# or Java code to specify your tests! Either, you don't need Visual Studio or Eclipse to compile your test suite. Just create an Xml file and let the framework interpret it and play your tests. The framework is designed as an add-on of NUnit but with the possibility to port it easily to other testing frameworks.

                                                                                  Support
                                                                                    Quality
                                                                                      Security
                                                                                        License
                                                                                          Reuse

                                                                                            NBiby Seddryck

                                                                                            C# doticon star image 101 doticonVersion:v1.23doticon License: Permissive (Apache-2.0)

                                                                                            NBi is a testing framework (add-on to NUnit) for Business Intelligence and Data Access. The main goal of this framework is to let users create tests with a declarative approach based on an Xml syntax. By the means of NBi, you don't need to develop C# or Java code to specify your tests! Either, you don't need Visual Studio or Eclipse to compile your test suite. Just create an Xml file and let the framework interpret it and play your tests. The framework is designed as an add-on of NUnit but with the possibility to port it easily to other testing frameworks.
                                                                                            Support
                                                                                              Quality
                                                                                                Security
                                                                                                  License
                                                                                                    Reuse
                                                                                                      C# doticonstar image 70 doticonVersion:v.3.0.0-finaldoticon
                                                                                                      License: Strong Copyleft (GPL-2.0)

                                                                                                      Database Benchmark is one of the most powerfull open source tools designed to stress test databases with large data flows.

                                                                                                      Support
                                                                                                        Quality
                                                                                                          Security
                                                                                                            License
                                                                                                              Reuse

                                                                                                                DatabaseBenchmarkby STSSoft

                                                                                                                C# doticon star image 70 doticonVersion:v.3.0.0-finaldoticon License: Strong Copyleft (GPL-2.0)

                                                                                                                Database Benchmark is one of the most powerfull open source tools designed to stress test databases with large data flows.
                                                                                                                Support
                                                                                                                  Quality
                                                                                                                    Security
                                                                                                                      License
                                                                                                                        Reuse

                                                                                                                          TestDataGenerator.Coreby SecretDeveloper

                                                                                                                          C# doticonstar image 67 doticonVersion:4.1.0doticon
                                                                                                                          License: Permissive (MIT)

                                                                                                                          A library that can be used to generate data for testing or other uses. You provide it with a pattern containing symbols defining the output you want to produce and it will create random data to match that pattern.

                                                                                                                          Support
                                                                                                                            Quality
                                                                                                                              Security
                                                                                                                                License
                                                                                                                                  Reuse

                                                                                                                                    TestDataGenerator.Coreby SecretDeveloper

                                                                                                                                    C# doticon star image 67 doticonVersion:4.1.0doticon License: Permissive (MIT)

                                                                                                                                    A library that can be used to generate data for testing or other uses. You provide it with a pattern containing symbols defining the output you want to produce and it will create random data to match that pattern.
                                                                                                                                    Support
                                                                                                                                      Quality
                                                                                                                                        Security
                                                                                                                                          License
                                                                                                                                            Reuse

                                                                                                                                              SeeSharpToolsby SeeSharpOpenSource

                                                                                                                                              C# doticonstar image 59 doticonVersion:V1.4.6doticon
                                                                                                                                              License: Strong Copyleft (GPL-3.0)

                                                                                                                                              This open source repository is developed and maintained by the JYTEK company, Shanghai, China, for the purpose of facilitating the development of the test and measurement using C# programming language. The project follows the GNU GPL V3.0 license and provides many commonly used T&M GUIs, utilities, data manipulations, and algorithms.

                                                                                                                                              Support
                                                                                                                                                Quality
                                                                                                                                                  Security
                                                                                                                                                    License
                                                                                                                                                      Reuse

                                                                                                                                                        SeeSharpToolsby SeeSharpOpenSource

                                                                                                                                                        C# doticon star image 59 doticonVersion:V1.4.6doticon License: Strong Copyleft (GPL-3.0)

                                                                                                                                                        This open source repository is developed and maintained by the JYTEK company, Shanghai, China, for the purpose of facilitating the development of the test and measurement using C# programming language. The project follows the GNU GPL V3.0 license and provides many commonly used T&M GUIs, utilities, data manipulations, and algorithms.
                                                                                                                                                        Support
                                                                                                                                                          Quality
                                                                                                                                                            Security
                                                                                                                                                              License
                                                                                                                                                                Reuse

                                                                                                                                                                  TinyXWingCleanby brihernandez

                                                                                                                                                                  C# doticonstar image 46 doticonVersion:Currentdoticon
                                                                                                                                                                  License: Permissive (Zlib)

                                                                                                                                                                  Tech demo for testing JSON-loaded game data

                                                                                                                                                                  Support
                                                                                                                                                                    Quality
                                                                                                                                                                      Security
                                                                                                                                                                        License
                                                                                                                                                                          Reuse

                                                                                                                                                                            TinyXWingCleanby brihernandez

                                                                                                                                                                            C# doticon star image 46 doticonVersion:Currentdoticon License: Permissive (Zlib)

                                                                                                                                                                            Tech demo for testing JSON-loaded game data
                                                                                                                                                                            Support
                                                                                                                                                                              Quality
                                                                                                                                                                                Security
                                                                                                                                                                                  License
                                                                                                                                                                                    Reuse

                                                                                                                                                                                      TestApiby microsoft

                                                                                                                                                                                      C# doticonstar image 42 doticonVersion:Currentdoticon
                                                                                                                                                                                      License: Weak Copyleft (MS-PL)

                                                                                                                                                                                      TestApi is a library of test and utility APIs that enables developers and testers to create testing tools and automated tests for .NET and Win32 applications. TestApi provides a set of common test building blocks -- types, data-structures and algorithms -- in a simple, layered, componentized and documented stack.

                                                                                                                                                                                      Support
                                                                                                                                                                                        Quality
                                                                                                                                                                                          Security
                                                                                                                                                                                            License
                                                                                                                                                                                              Reuse

                                                                                                                                                                                                TestApiby microsoft

                                                                                                                                                                                                C# doticon star image 42 doticonVersion:Currentdoticon License: Weak Copyleft (MS-PL)

                                                                                                                                                                                                TestApi is a library of test and utility APIs that enables developers and testers to create testing tools and automated tests for .NET and Win32 applications. TestApi provides a set of common test building blocks -- types, data-structures and algorithms -- in a simple, layered, componentized and documented stack.
                                                                                                                                                                                                Support
                                                                                                                                                                                                  Quality
                                                                                                                                                                                                    Security
                                                                                                                                                                                                      License
                                                                                                                                                                                                        Reuse

                                                                                                                                                                                                          ModelBuilderby roryprimrose

                                                                                                                                                                                                          C# doticonstar image 18 doticonVersion:8.2.0doticon
                                                                                                                                                                                                          License: Permissive (MIT)

                                                                                                                                                                                                          A library for easy creation and data population of model classes for testing

                                                                                                                                                                                                          Support
                                                                                                                                                                                                            Quality
                                                                                                                                                                                                              Security
                                                                                                                                                                                                                License
                                                                                                                                                                                                                  Reuse

                                                                                                                                                                                                                    ModelBuilderby roryprimrose

                                                                                                                                                                                                                    C# doticon star image 18 doticonVersion:8.2.0doticon License: Permissive (MIT)

                                                                                                                                                                                                                    A library for easy creation and data population of model classes for testing
                                                                                                                                                                                                                    Support
                                                                                                                                                                                                                      Quality
                                                                                                                                                                                                                        Security
                                                                                                                                                                                                                          License
                                                                                                                                                                                                                            Reuse

                                                                                                                                                                                                                              See similar Kits and Libraries