Bogus VS NUnit

Compare Bogus vs NUnit and see what are their differences.


:card_index: A simple fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js. (by bchavez)
Our great sponsors
  • InfluxDB - Build time-series-based applications quickly and at scale.
  • SonarLint - Clean code begins in your IDE with SonarLint
  • SaaSHub - Software Alternatives and Reviews
Bogus NUnit
17 19
6,689 2,267
- 0.4%
4.6 7.3
7 days ago 7 days ago
C# C#
GNU General Public License v3.0 or later MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.


Posts with mentions or reviews of Bogus. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-21.
  • Using EF Core and Bogus
    2 projects | | 21 Jan 2023
    Going forward, the secret to knowing were to find data is to read Bogus information in the readme file which goes into depth were to find paths to generate data. This is very important as you can clash with their classes e.g. you create a Person class and guess what, Bogus has a Person class. This is were knowing how to work with using statements and using statements with aliasing.
  • Learn DateOnly & TimeOnly
    7 projects | | 15 Jan 2023
    Code samples for which as of version 13.0.2 now supports DateOnly and TimeOnly. Three code samples are used to show interactions with Bogus and Microsoft.Data.SqlClient which is most likely used to work with json data.
  • Is there a tool that could be used to generate fake unit test cases automatically for code coverage? (read description before downvoting)
    2 projects | | 19 May 2022
    In terms of generating test cases, I've come across this before:
  • Help me find this library
    2 projects | | 27 Mar 2022
    I used a .Net library a few years ago to create random text for a bunch of fake email bodies. It wasn't "lorem ipsum" type text, but full sentences and paragraphs. It would produce text that sounded like it came from a bullshit consulting handbook, or an intentionally obtuse technical description....things like, "Though vague in purpose the participant reality substituted reactional nature while in strongest thought vertices coincided with ...." and so on. I think it was somehow tied to Bogus but I can't seem to find it anywhere. Anyone able to help me out here?
  • Some useful Libraries for .NET projects
    6 projects | | 2 Oct 2021
    Bogus Github Nuget: Install-Package Bogus -Version 33.1.1
  • My first NuGet package: Fluent Random Picker
    4 projects | | 27 Jun 2021
    Seems like a fun package but I prefer Bogus
  • String similarity search and fast LIKE operator using pg_trgm
    2 projects | | 11 May 2021
    I inserted 10M rows of fake data generated by Bogus into the table. You can download the dump here.
  • Comparison between TypeORM and Entity Framework with LINQ
    2 projects | | 16 Mar 2021
    What is Bogus and Faker? They are libraries randomly to create a variety of dummy data such as human name, address, date and product/company name etc. = reduce our boring time of generating dummy records and have testing cases with multiple dummy values instead of our static ones.


Posts with mentions or reviews of NUnit. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-30.
  • Unlock the Power of Unit Testing: A Beginner’s Guide to Quality Software Development
    3 projects | | 30 Jan 2023
    3 projects | | 30 Jan 2023
    This is a basic example of how to create an NUnit unit test for a simple API in a controller with C#. You can find more information and resources on the NUnit website and in the NUnit documentation.
  • Creating Your Own Custom Attributes in C# and Retrieving Their Values
    3 projects | | 17 Dec 2022
    I was trying to think of an example of where C# attributes might be used in every day life and then it dawned on me: unit testing! If you have ever used a unit test framework such as MSTest, NUnit or xUnit, you will have used attributes in C# to define the classes and methods that you would like the test framework to execute. This is just one example of how you can use attributes to assign metadata to elements of your code.
  • Reduce your tests cognitive complexity with AutoFixture
    3 projects | | 20 May 2022
    The setup here is really minimal, just create a new test project. I'll be using xUnit but NUnit should be fine too.
  • Getting Started with Unit Testing in Visual Studio 2022 - nUnit
    2 projects | | 5 Jan 2022
    Meanwhile NUnit has had multiple releases since 2018:
  • What is unit testing?
    3 projects | | 8 Nov 2021
    There are unit testing frameworks for most popular programming languages. Some examples of popular unit test frameworks are Jest for Javascript, JUnit for Java, and NUnit for all .Net languages.
  • BREAKING!! NPM package ‘ua-parser-js’ with more than 7M weekly download is compromised
    32 projects | | 22 Oct 2021 That is simply not true. Mature c# projects purposely maintain no downstream dependencies and is they do, it's to a major reputable lib. See for yourself - these are staple third party packages commonly used. Anything dependency starting with System or NETStandard is Microsoft maintained.
  • Os 3 principais frameworks de testes que todo desenvolvedor .NET deveria conhecer
    3 projects | | 18 Oct 2021
  • share one RazorPage application of CleanArchitecture Project
    4 projects | | 16 Sep 2021
    NUnit, FluentAssertions, Moq & Respawn
  • ASP.NET Core Unit Testing with FluentAssertions
    3 projects | | 21 Aug 2021
    A unit test is a way to test the smallest unit of the software. In almost all programming languages, this smallest unit is normally a function (method), a subroutine, or a property. When we do unit testing, we check whether a particular property has the expected value or a particular method is returning a value or result we are expecting it to return. There are many popular unit test frameworks available for almost all programming languages and all types of applications. The three most popular unit tests frameworks used by many .NET developers around the world are NUnit, xUnit, and MSTest. All of these frameworks have their pros and cons but they all have an extensive set of features for writing unit tests. These three unit test frameworks are so popular that Microsoft Visual Studio has built-in project templates for these frameworks.

What are some alternatives?

When comparing Bogus and NUnit you can also consider the following projects:

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.

faker-cs - C# port of the Ruby Faker gem (

Moq - Repo for managing Moq 4.x

NBuilder - Rapid generation of test objects in .NET

Fluent Assertions - A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or BDD-style unit tests. Targets .NET Framework 4.7, as well as .NET Core 2.1, .NET Core 3.0, .NET 6, .NET Standard 2.0 and 2.1. Supports the unit test frameworks MSTest2, NUnit3, XUnit2, MSpec, and NSpec3.

xUnit - is a free, open source, community-focused unit testing tool for .NET.

NSubstitute - A friendly substitute for .NET mocking libraries.

GenFu - 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.

FakeItEasy - The easy mocking library for .NET

Shouldly - Should testing for .NET—the way assertions should be!

dotnet-testcontainers - 🐋 A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions. [Moved to:]