BddDotNet 1.0.0-beta6
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Framework 4.7.2
This package targets .NET Framework 4.7.2. The package is compatible with this framework or higher.
This is a prerelease version of BddDotNet.
dotnet add package BddDotNet --version 1.0.0-beta6
NuGet\Install-Package BddDotNet -Version 1.0.0-beta6
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BddDotNet" Version="1.0.0-beta6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BddDotNet" Version="1.0.0-beta6" />
<PackageReference Include="BddDotNet" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BddDotNet --version 1.0.0-beta6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BddDotNet, 1.0.0-beta6"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package BddDotNet@1.0.0-beta6
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BddDotNet&version=1.0.0-beta6&prerelease
#tool nuget:?package=BddDotNet&version=1.0.0-beta6&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Overview
Modern BDD framework for c# and .NET with gherkin support
Gherkin syntax example
Feature: Guess the word
# The first example has two steps
Scenario: Maker starts a game
When the Maker starts a game
Then the Maker waits for a Breaker to join
# The second example has three steps
Scenario: Breaker joins a game
Given the Maker has started a game with the word "silky"
When the Breaker joins the Maker's game
Then the Breaker must guess a word with 5 characters
CSharp syntax scenario example
Program.cs content:
using BddDotNet;
using Microsoft.Testing.Platform.Builder;
var builder = await TestApplication.CreateBuilderAsync(args);
var services = builder.AddBddDotNet();
services.Scenario<Program>("feature1", "scenario1", async context =>
{
await context.Given("this is given step");
await context.When("this is when step");
await context.Then("this is then step");
});
services.Given(new("this is given step"), () =>
{
Console.WriteLine("This is the given step.");
});
services.When(new("this is when step"), () =>
{
Console.WriteLine("This is the when step.");
});
services.Then(new("this is then step"), () =>
{
Console.WriteLine("This is the then step.");
});
using var testApp = await builder.BuildAsync();
return await testApp.RunAsync();
More info: https://github.com/Romfos/BddDotNet
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.2
- Microsoft.Extensions.DependencyInjection (>= 8.0.1)
- Microsoft.Testing.Platform (>= 1.8.1)
-
net8.0
- Microsoft.Extensions.DependencyInjection (>= 8.0.1)
- Microsoft.Testing.Platform (>= 1.8.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on BddDotNet:
Package | Downloads |
---|---|
BddDotNet.Gherkin.CSharpExpressions
Modern BDD framework for c# and .NET with gherkin support |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
1.0.0-beta6 | 0 | 8/9/2025 |
1.0.0-beta5 | 41 | 8/8/2025 |
1.0.0-beta4 | 54 | 8/8/2025 |
1.0.0-beta3 | 85 | 8/7/2025 |
1.0.0-beta2 | 90 | 8/4/2025 |
1.0.0-beta1 | 88 | 8/4/2025 |