void ITestStream.Sentence(Sentence sentence, IStep step) { var tag = new SentenceTag(sentence, step); tag.WriteResults(_context); _document.Add(tag); }
public Results(SentenceTag tag, ITestContext context) { _tag = tag; _context = context; _results = _context.ResultsFor(tag._step); _step = tag._step; }
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.WritePreview(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); }
public Preview(SentenceTag tag, ITestContext context) { _tag = tag; _context = context; _step = tag._step; }
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); }