My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Links

What

A tiny BDD (Behaviour Driven Development) DSL for C#, which also is Test Runner agnostic and lets you do BDD syntax while writing tests.

Example

[Test]
public void Update_status()
{
    Scenario("Update user status on Twitter");
    Given("the user is logged on", () =>
            twitter = new Twitter(username, password));

     When("status is updated", () =>
            twitter.Status.Update("hello world..."));

     Then("status should be updated", () =>
            twitter.Status.Show(username).Status.Text.ShouldEqual("hello world..."));
}

See TinyBDD in action here and here (larger test of a Model-View-ViewModel impl).

Download TinyBDD.

Documentation

  • How to use TinyBDD with NUnit
Powered by Google Project Hosting