~ubuntu-branches/ubuntu/quantal/monodevelop/quantal

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Andrew Mitchell
  • Date: 2011-06-29 06:56:25 UTC
  • mfrom: (1.8.1 upstream) (1.3.11 experimental)
  • Revision ID: james.westby@ubuntu.com-20110629065625-7xx19c4vb95j65pl
Tags: 2.5.92+dfsg-1ubuntu1
* Merge from Debian experimental:
 - Dropped patches & changes to debian/control for Moonlight
   + debian/patches/remove_support_for_moonlight.patch,
   + debian/patches/dont_add_moonlight_to_core_addins.patch,
 - Remaining patches:
   + debian/patches/no_appmenu:

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        {
41
41
                NUnitAssemblyTestSuite rootSuite;
42
42
                string className;
 
43
                string pathName;
43
44
                
44
 
                public NUnitTestCase (NUnitAssemblyTestSuite rootSuite, NunitTestInfo tinfo): base (tinfo.Name)
 
45
                public NUnitTestCase (NUnitAssemblyTestSuite rootSuite, NunitTestInfo tinfo, string className) : base (tinfo.Name)
45
46
                {
46
 
                        className = tinfo.PathName;
 
47
                        this.className = className;
 
48
                        this.pathName  = tinfo.PathName;
47
49
                        this.rootSuite = rootSuite;
48
50
                }
49
51
                
53
55
                
54
56
                protected override UnitTestResult OnRun (TestContext testContext)
55
57
                {
56
 
                        return rootSuite.RunUnitTest (this, className, Name, testContext);
 
58
                        return rootSuite.RunUnitTest (this, className, pathName, Name, testContext);
57
59
                }
58
60
                
59
61
                protected override bool OnCanRun (MonoDevelop.Core.Execution.IExecutionHandler executionContext)