public void SetUp() { sentence = Sentence.For("{name} is {age}", Cell.For <string>("name"), Cell.For <int>("age")); step = new Step().With("name:Max,age:6"); tag = new SentenceTag(sentence, step); context = new TestContext(); tag.WriteResults(context); }
public void SetUp() { context = new TestContext(); sentence = new FactFixture()["True"].ToStructure(new FixtureLibrary()).As <Sentence>(); step = new Step(); sentence.ResultCell.RecordActual(true, step, context); tag = new SentenceTag(sentence, step); tag.WriteResults(context); }
public void SetUp() { sentence = Sentence.For("{name} is {age}", Cell.For <string>("name"), Cell.For <int>("age")); step = new Step().With("name:Max,age:6"); tag = new SentenceTag(sentence, step); context = new TestContext(); StepResults results = context.ResultsFor(step); results.CaptureException("bad stuff"); results.ExceptionText.ShouldEqual("bad stuff"); tag.WriteResults(context); }