资 源 简 介
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 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报