Rev | Line | |
---|
[1146] | 1 | // ****************************************************************
|
---|
| 2 | // Copyright 2007, Charlie Poole
|
---|
| 3 | // This is free software licensed under the NUnit license. You may
|
---|
| 4 | // obtain a copy of the license at http://nunit.org/?p=license&r=2.4
|
---|
| 5 | // ****************************************************************
|
---|
| 6 |
|
---|
| 7 | using System;
|
---|
| 8 | using NUnit.Core.Extensibility;
|
---|
| 9 |
|
---|
| 10 | namespace NUnit.Core.Extensions
|
---|
| 11 | {
|
---|
| 12 | /// <summary>
|
---|
| 13 | /// Summary description for Addin.
|
---|
| 14 | /// </summary>
|
---|
| 15 | [NUnitAddin(Name="SampleSuiteExtension", Description = "Recognizes Tests starting with SampleTest...")]
|
---|
| 16 | public class Addin : IAddin
|
---|
| 17 | {
|
---|
| 18 | #region IAddin Members
|
---|
| 19 | public bool Install(IExtensionHost host)
|
---|
| 20 | {
|
---|
| 21 | IExtensionPoint builders = host.GetExtensionPoint( "SuiteBuilders" );
|
---|
| 22 | if ( builders == null )
|
---|
| 23 | return false;
|
---|
| 24 |
|
---|
| 25 | builders.Install( new SampleSuiteExtensionBuilder() );
|
---|
| 26 | return true;
|
---|
| 27 | }
|
---|
| 28 | #endregion
|
---|
| 29 | }
|
---|
| 30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.