~ubuntu-branches/ubuntu/oneiric/monodevelop/oneiric-updates

« back to all changes in this revision

Viewing changes to src/addins/NUnit/Services/UnitTestResult.cs

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-18 08:40:51 UTC
  • mfrom: (1.2.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090218084051-gh8m6ukvokbwj7cf
Tags: 1.9.2+dfsg-1ubuntu1
* Merge from Debian Experimental (LP: #330519), remaining Ubuntu changes:
  + debian/control:
    - Update for Gnome# 2.24
    - Add libmono-cairo1.0-cil to build-deps to fool pkg-config check

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
using System.Collections;
32
32
using System.Xml.Serialization;
33
33
using System.Globalization;
 
34
using System.Text.RegularExpressions;
34
35
 
35
36
namespace MonoDevelop.NUnit
36
37
{
 
38
        [Serializable]
37
39
        public class UnitTestResult
38
40
        {
39
41
                DateTime testDate;
145
147
                        get { return cerror; }
146
148
                        set { cerror = value; }
147
149
                }
 
150
                
 
151
                public SourceCodeLocation GetFailureLocation ()
 
152
                {
 
153
/*                      if (!String.IsNullOrEmpty (stackTrace)) {
 
154
                                Match match = Regex.Match (stackTrace, @"\s*?at\s(?!NUnit\.Framework).*?\sin\s(.*?):(\d+)", RegexOptions.Multiline);
 
155
                                while (match.Success) {
 
156
                                        try     {
 
157
                                                int line = Int32.Parse (match.Groups[2].Value);
 
158
                                                return new SourceCodeLocation (match.Groups[1].Value, line, 1);
 
159
                                        } catch (Exception) {
 
160
                                        }
 
161
                                        match = match.NextMatch ();
 
162
                                }
 
163
                        }
 
164
*/                      return null;
 
165
                }
148
166
        }
149
167
}
150
168