1 // ****************************************************************
\r
2 // This is free software licensed under the NUnit license. You
\r
3 // may obtain a copy of the license as well as information regarding
\r
4 // copyright ownership at http://nunit.org/?p=license&r=2.4.
\r
5 // ****************************************************************
\r
9 namespace NUnit.Core.Extensibility
\r
12 /// The ISuiteBuilder interface is exposed by a class that knows how to
\r
13 /// build a suite from one or more Types.
\r
15 public interface ISuiteBuilder
\r
18 /// Examine the type and determine if it is suitable for
\r
19 /// this builder to use in building a TestSuite.
\r
21 /// Note that returning false will cause the type to be ignored
\r
22 /// in loading the tests. If it is desired to load the suite
\r
23 /// but label it as non-runnable, ignored, etc., then this
\r
24 /// method must return true.
\r
26 /// <param name="type">The type of the fixture to be used</param>
\r
27 /// <returns>True if the type can be used to build a TestSuite</returns>
\r
28 bool CanBuildFrom( Type type );
\r
31 /// Build a TestSuite from type provided.
\r
33 /// <param name="type">The type of the fixture to be used</param>
\r
34 /// <returns>A TestSuite</returns>
\r
35 Test BuildFrom( Type type );
\r