Example #1
0
        internal void AddRipGrepOutput(string output)
        {
            var splittedOutput = output.Split(":".ToCharArray(), 3);

            if (splittedOutput.Length != 2 && splittedOutput.Length != 3)
            {
                return;
            }

            ResultLineModel resultLine;

            var line   = Convert.ToUInt32(splittedOutput[0]);
            var column = Convert.ToUInt32(splittedOutput[1]);

            if (!Lines.TryGetValue(line, out resultLine))
            {
                resultLine = new ResultLineModel(this, line, column, splittedOutput[2].Trim());
                Lines.Add(line, resultLine);
                ResultLines.Add(resultLine);

                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs("NumberOfChildItems"));
            }
        }
Example #2
0
        public void Add(TestResult result)
        {
            result.ThrowIfNull("result");

            ResultLines.Add(result);
        }