Example #1
0
        private void ParseTest(Test x)
        {
            _listener.ReadingTest(x.LocatorPath());

            var parser = new TestParser(x, this, _library);
            parser.Parse();
        }
Example #2
0
        private string writeResults()
        {
            var writer = new ResultsWriter(_context);
            var parser = new TestParser(_request.Test, writer, _library);
            parser.Parse();

            string results;
            try
            {
                results = writer.Document.ToString();
            }
            catch(HttpException)
            {
                results = @"Failed to create test run results because of bug in .NET Framework 4.0:
            https://connect.microsoft.com/VisualStudio/feedback/details/578670/httputility-htmlencode-fails-in-application-start-with-response-is-not-available-in-this-context?wa=wsignin1.0";
            }
            return results;
        }
        public void Rebuild(OutlineNode topNode)
        {
            topNode.IsSelected = true;
            topNode.Items.Clear();
            _top = topNode;

            _nodes.Push(_top);
            LastNode = _top;

            var parser = new TestParser(_test, this, _library);
            parser.Parse();
        }
Example #4
0
        public void Rebuild(IEnumerable<Test> tests)
        {
            _fixtures.ClearAll();

            _listener.Start(tests.Count());

            tests.Each(x =>
            {
                _listener.ReadingTest(x.LocatorPath());

                var parser = new TestParser(x, this, _library);
                parser.Parse();
            });
        }