Created
May 23, 2011 07:50
-
-
Save Andrea/986374 to your computer and use it in GitHub Desktop.
If you run this with xunit (I have 1.8) on release mode . there are no reports generated
This file contains 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
namespace StoryQReportWithXunit | |
{ | |
using StoryQ; | |
using Xunit; | |
public class Class1 | |
{ | |
[Fact] | |
public void When_Then() | |
{ | |
new Story("Data Safety").Tag("sprint 1") | |
.InOrderTo("Keep my data safe") | |
.AsA("User") | |
.IWant("All credit card numbers to be encrypted") | |
.WithScenario("submitting shopping cart") | |
.Given(IHaveTypedMyCreditCardNumberIntoTheCheckoutPage) | |
.When(IClickThe_Button, "Buy") | |
.Then(TheForm_BePostedOverHttps, true) | |
.ExecuteWithReport(); | |
} | |
private void TheForm_BePostedOverHttps(bool obj) | |
{ | |
Assert.True(true); | |
} | |
private void IClickThe_Button(string obj) | |
{ | |
Assert.True(true); | |
} | |
private void IHaveTypedMyCreditCardNumberIntoTheCheckoutPage() | |
{ | |
Assert.True(true); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment