Skip to content

Instantly share code, notes, and snippets.

@Restuta
Created November 19, 2012 03:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Restuta/4108845 to your computer and use it in GitHub Desktop.
Save Restuta/4108845 to your computer and use it in GitHub Desktop.
BDD sintax example
[Feature]
public class Tool_usage
{
[Scenario]
public void Use_new_tool()
{
Tool tool = default(Tool);
"Given I created a new tool"._(() =>
{
tool = new Tool();
});
"When I use this tool"._(() =>
{
tool.Use();
});
"Then it should look used"._(() =>
{
tool.Look.ShouldEqual("used");
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment