2010-06-03 Jb Evain <jbevain@novell.com>
[mcs.git] / nunit24 / NUnitExtensions / framework / RepeatAttribute.cs
blob1af79b60817077e3b7884442e64505ec9c2b339a
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 // ****************************************************************
7 using System;
9 namespace NUnit.Framework.Extensions
11 /// <summary>
12 /// RepeatAttribute may be applied to test case in order
13 /// to run it multiple times.
14 /// </summary>
15 [AttributeUsage(AttributeTargets.Method, AllowMultiple=false)]
16 public class RepeatAttribute : Attribute
18 private int count;
20 /// <summary>
21 /// Construct a RepeatAttribute
22 /// </summary>
23 /// <param name="count">The number of times to run the test</param>
24 public RepeatAttribute(int count)
26 this.count = count;
29 /// <summary>
30 /// Gets the number of times to run the test.
31 /// </summary>
32 public int Count
34 get { return count; }