Line | |
---|
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.Samples.Extensibility
|
---|
11 | {
|
---|
12 | /// <summary>
|
---|
13 | /// This is the smallest possible Addin, which does nothing
|
---|
14 | /// but is recognized by NUnit and listed in the Addins dialog.
|
---|
15 | ///
|
---|
16 | /// The Addin class is marked by the NUnitAddin attribute and
|
---|
17 | /// implements IAddin, as required. Optional property syntax
|
---|
18 | /// is used here to override the default name of the addin and
|
---|
19 | /// to provide a description. Both are displayed by NUnit in the
|
---|
20 | /// Addin Dialog.
|
---|
21 | ///
|
---|
22 | /// The addin doesn't actually install anything, but simply
|
---|
23 | /// returns false in its Install method.
|
---|
24 | /// </summary>
|
---|
25 | [NUnitAddin(Name="Minimal Addin", Description="This Addin doesn't do anything")]
|
---|
26 | public class Minimal : IAddin
|
---|
27 | {
|
---|
28 | #region IAddin Members
|
---|
29 | public bool Install(IExtensionHost host)
|
---|
30 | {
|
---|
31 | // TODO: Add Minimal.Install implementation
|
---|
32 | return true;
|
---|
33 | }
|
---|
34 | #endregion
|
---|
35 | }
|
---|
36 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.