Наследование: HtmlTags.HtmlTag
Пример #1
0
        void ITestStream.Sentence(Sentence sentence, IStep step)
        {
            var tag = new SentenceTag(sentence, step);

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