Created
November 19, 2012 03:54
-
-
Save Restuta/4108845 to your computer and use it in GitHub Desktop.
BDD sintax example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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