Inheritance: HtmlTags.HtmlTag
Beispiel #1
0
        void ITestStream.Sentence(Sentence sentence, IStep step)
        {
            var tag = new SentenceTag(sentence, step);

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