~nunit-core/nunitv2/2.5

« back to all changes in this revision

Viewing changes to src/NUnitFramework/core/WarningSuite.cs

  • Committer: jnewkirk
  • Date: 2002-07-10 20:00:13 UTC
  • Revision ID: vcs-imports@canonical.com-20020710200013-j8us5mbi0usp7p02
initialĀ load

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using System;
 
2
 
 
3
namespace Nunit.Core
 
4
{
 
5
        /// <summary>
 
6
        /// Summary description for WarningSuite.
 
7
        /// </summary>
 
8
        public class WarningSuite : TestSuite
 
9
        {
 
10
                public WarningSuite(string name) : base(name) {
 
11
                        ShouldRun=false;
 
12
                }
 
13
 
 
14
                protected internal override void Add(Test test)
 
15
                {
 
16
                        base.Add(test);
 
17
                        test.ShouldRun = false;
 
18
                        test.IgnoreReason = "Containing Suite cannot be run";
 
19
                }
 
20
 
 
21
                protected internal override TestSuite CreateNewSuite(string name) 
 
22
                {
 
23
                        return new WarningSuite(name);
 
24
                }
 
25
        }
 
26
}