Skip to content

Instantly share code, notes, and snippets.

@RobertMischke
Created October 4, 2010 13:15
Show Gist options
  • Save RobertMischke/609672 to your computer and use it in GitHub Desktop.
Save RobertMischke/609672 to your computer and use it in GitHub Desktop.
namespace BDDish.Tests
{
public class PlaygroundDSLGerman
{
[Test]
public void SampleForDSL()
{
new German.Feature("Schnittstellen").
Anforderung("FANTASYformat v1.0 exportieren").
Als(SampleKunde.NormalerKunde).
AkzeptanzKriterium("Das erstellte Dokument ist gegen XSD zu validieren").
Für(SampleData.A).
Gilt(SomeAssertionMethod).
Gilt(SomeAssertionMethod, "").
AkzeptanzKriterium("...").
Für(SampleData.B).
Gilt(SomeAssertionMethod).
Als(SampleKunde.Sondermann).
AkzeptanzKriterium("Die Auftragseigenschaften sind vollständig im Zieldokument zu finden").
Für(SampleData.A).
Gilt("FeldA", Is.EqualTo("FeldB")).
Gilt("FeldB", Is.EqualTo("FeldB")).
Execute();
}
public void SomeAssertionMethod()
{
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment