Пример #1
0
        private static string RunTest(object test)
        {
            try
            {
                var reportingTarget = new StringReportTarget();
                new ScenarioRunner(test, reportingTarget).Run();

                throw new Exception("wrong exception");
            }
            catch (FixtureShouldHaveWhens ex)
            {
                return ex.Message;
            }
        }
Пример #2
0
 internal override IReportTarget CreateReportTarget()
 {
     return _target ?? (_target = new StringReportTarget());
 }