File: SetUpAttribute.xml

package info (click to toggle)
monodoc 1.9-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 98,436 kB
  • ctags: 5,261
  • sloc: xml: 1,506,218; cs: 40,827; sh: 3,647; perl: 554; makefile: 476
file content (73 lines) | stat: -rw-r--r-- 2,134 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<Type Name="SetUpAttribute" FullName="NUnit.Framework.SetUpAttribute">
  <TypeSignature Language="C#" Maintainer="auto" Value="public sealed class SetUpAttribute : Attribute" />
  <AssemblyInfo>
    <AssemblyName>nunit.framework</AssemblyName>
    <AssemblyPublicKey>
    </AssemblyPublicKey>
    <AssemblyVersion>2.1.4.0</AssemblyVersion>
  </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>
  <Base>
    <BaseTypeName>System.Attribute</BaseTypeName>
  </Base>
  <Interfaces />
  <Attributes>
    <Attribute>
      <AttributeName>System.AttributeUsage(AllowMultiple=False, Inherited=True, ValidOn=System.AttributeTargets.Method)</AttributeName>
    </Attribute>
  </Attributes>
  <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>
  <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>
        <remarks>To be added.</remarks>
      </Docs>
      <AssemblyInfo>
        <AssemblyVersion>2.2.0.0</AssemblyVersion>
      </AssemblyInfo>
    </Member>
  </Members>
</Type>