AspUnitRunner.Core.ResultParser.Parse C# (CSharp) Метод

Parse() публичный Метод

public Parse ( string htmlResults ) : IResults
htmlResults string
Результат IResults
        public IResults Parse(string htmlResults)
        {
            _results = new Results {
                Html = htmlResults,
                DetailList = new List<IResultDetail>()
            };

            var doc = _htmlDocumentFactory.Create(_results.Html);
            var tables = doc.GetElementsByTagName("TABLE");

            foreach (var table in tables) {
                ParseTable(table);
                return _results;
            }

            throw new FormatException("Unable to parse test results.");
        }