<Type Name="SetUpAttribute" FullName="NUnit.Framework.SetUpAttribute">
  <TypeSignature Language="C#" Value="public sealed class SetUpAttribute : System.Attribute" Maintainer="auto" />
  <AssemblyInfo>
    <AssemblyName>NUnit.Framework</AssemblyName>
    <AssemblyPublicKey>
    </AssemblyPublicKey>
    <AssemblyVersion>2.1.4.0</AssemblyVersion>
    <AssemblyCulture>neutral</AssemblyCulture>
    <Attributes>
      <Attribute>
        <AttributeName>System.CLSCompliantAttribute</AttributeName>
      </Attribute>
    </Attributes>
  </AssemblyInfo>
  <ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement>
  <Docs>
    <summary>
    SetUp this attribute are used inside a TestFixture to provide a function that are performed prior a test method is called.
    </summary>
    <remarks>
      <para>
    A TestFixture can have only one SetUp method. If more than one is defined the TestFixture will not be run. 
    It will compile however.
    </para>
      <example>
        <code lang="C#">
    using System;
    using NUnit.Framework;

    [TestFixture]
    public class SuccessTests
    {
            [SetUp] 
	    public void GetReady() 
	    { 
	            /* ... */ 
	    } 
    
            [TearDown] 
	    public void Clear() 
	    { 
	            /* ... */ 
	    } 
    
            [Test] 
	    public void Foobar() 
	    { 
	            /* ... */ 
	    }
    }
    </code>
      </example>
    </remarks>
  </Docs>
  <Base>
    <BaseTypeName>System.Attribute</BaseTypeName>
  </Base>
  <Interfaces />
  <Attributes>
    <Attribute>
      <AttributeName>System.AttributeUsageAttribute</AttributeName>
    </Attribute>
  </Attributes>
  <Members>
    <Member MemberName=".ctor">
      <MemberSignature Language="C#" Value="public SetUpAttribute ();" />
      <MemberType>Constructor</MemberType>
      <ReturnValue />
      <Parameters />
      <Docs>
        <summary>Flags a method as a Setup method</summary>
      </Docs>
    </Member>
  </Members>
</Type>