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

            tag.WriteResults(_context);
            _document.Add(tag);
        }
Example #2
0
 public Results(SentenceTag tag, ITestContext context)
 {
     _tag     = tag;
     _context = context;
     _results = _context.ResultsFor(tag._step);
     _step    = tag._step;
 }
Example #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);
        }
Example #4
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();
            StepResults results = context.ResultsFor(step);
            results.CaptureException("bad stuff");
            results.ExceptionText.ShouldEqual("bad stuff");

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