Skip to content

Instantly share code, notes, and snippets.

@Andrea
Created May 23, 2011 07:50
Show Gist options
  • Save Andrea/986374 to your computer and use it in GitHub Desktop.
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
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