示例#1
0
        private Shared.Results.TestResult getResult(double duration, Shared.Results.TestState state, string name, string message, string stackLines)
        {
            var result = new Shared.Results.TestResult("XUnit", _currentAssembly, "", duration * 1000, name, state, message);

            if (stackLines != null)
            {
                var lines = stackLines.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
                foreach (var line in lines)
                {
                    result.AddStackLine(new Shared.Results.StackLine(line));
                }
            }
            return(result);
        }
示例#2
0
 private Shared.Results.TestResult getResult(double duration, Shared.Results.TestState state, string name, string message)
 {
     return(getResult(duration, state, name, message, null));
 }