~simone.busoli/nunitv2/1071164

« back to all changes in this revision

Viewing changes to src/NUnitCore/core/Builders/NUnitTestCaseBuilder.cs

  • Committer: Charlie Poole
  • Date: 2012-01-10 23:03:38 UTC
  • Revision ID: charlie@nunit.org-20120110230338-ygaoy7iqi9wxtvxn
Remove special settings from config file; rewrite handling of log and  trace capture; revise TestRunner interface to remove multiple Run and BeginRun overloads for clarity

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    /// </summary>
25
25
    public class NUnitTestCaseBuilder : ITestCaseBuilder2
26
26
        {
27
 
        private readonly bool allowOldStyleTests = NUnitConfiguration.AllowOldStyleTests;
28
 
 
29
27
        #region ITestCaseBuilder Methods
30
28
        /// <summary>
31
29
        /// Determines if the method can be used to build an NUnit test
50
48
            return Reflect.HasAttribute(method, NUnitFramework.TestAttribute, false)
51
49
                || Reflect.HasAttribute(method, NUnitFramework.TestCaseAttribute, false)
52
50
                || Reflect.HasAttribute(method, NUnitFramework.TestCaseSourceAttribute, false)
53
 
                || Reflect.HasAttribute(method, NUnitFramework.TheoryAttribute, false)
54
 
                || allowOldStyleTests && method.Name.ToLower().StartsWith("test")
55
 
                && !Reflect.HasAttribute(method, NUnitFramework.SetUpAttribute, true)
56
 
                && !Reflect.HasAttribute(method, NUnitFramework.TearDownAttribute, true)
57
 
                && !Reflect.HasAttribute(method, NUnitFramework.FixtureSetUpAttribute, true)
58
 
                && !Reflect.HasAttribute(method, NUnitFramework.FixtureTearDownAttribute, true);
 
51
                || Reflect.HasAttribute(method, NUnitFramework.TheoryAttribute, false);
59
52
        }
60
53
 
61
54
                /// <summary>