1 <Type Name="TestAttribute" FullName="NUnit.Framework.TestAttribute">
2 <TypeSignature Language="C#" Maintainer="auto" Value="public sealed class TestAttribute : Attribute" />
4 <AssemblyName>nunit.framework</AssemblyName>
7 <AssemblyVersion>2.1.4.0</AssemblyVersion>
8 <AssemblyVersion>2.2.0.0</AssemblyVersion>
10 <ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
12 <BaseTypeName>System.Attribute</BaseTypeName>
17 <AttributeName>System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)</AttributeName>
22 The Test attribute marks a specific method inside a class that has already been marked as a TestFixture,
27 For backwards compatibility with previous versions of Nunit a test method will also be found if
28 the first 4 letters are "test" regardless of case.
30 <para>Note: The signature for a test method is defined as follows; public void MethodName()</para>
32 There must be no parameters. If the programmer marks a test method that does not have the correct signature it will
33 not be run and it will appear in the Test Not Run area in the UI that ran the program.
38 using NUnit.Framework;
41 public class SuccessTests
44 public void Add() { /* ... */ }
46 public void TestSubtract()
48 /* backwards compatibility */
56 <Member MemberName=".ctor">
57 <MemberSignature Language="C#" Value="public TestAttribute ();" />
58 <MemberType>Constructor</MemberType>
62 <summary>Flags a method to be a Test</summary>
63 <remarks>To be added.</remarks>
66 <AssemblyVersion>2.2.0.0</AssemblyVersion>
69 <Member MemberName="Description">
70 <MemberSignature Language="C#" Value="public string Description { set; get; }" />
71 <MemberType>Property</MemberType>
73 <ReturnType>System.String</ReturnType>
77 <summary>To be added</summary>
78 <value>a <see cref="T:System.String" /></value>
79 <remarks>To be added</remarks>
82 <AssemblyVersion>2.2.0.0</AssemblyVersion>