PageRenderTime 23ms CodeModel.GetById 19ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/src/NUnit/framework/Attributes/RepeatAttribute.cs

#
C# | 43 lines | 9 code | 5 blank | 29 comment | 0 complexity | 49f4a2a016a6a746ab004146e48c1d1b MD5 | raw file
 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
 5// ****************************************************************
 6
 7using System;
 8
 9namespace NUnit.Framework
10{
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, Inherited=false)]
16	public class RepeatAttribute : PropertyAttribute
17	{
18        /// <summary>
19        /// Construct a RepeatAttribute
20        /// </summary>
21        /// <param name="count">The number of times to run the test</param>
22        public RepeatAttribute(int count) : base(count) { }
23
24        //private int count;
25
26        ///// <summary>
27        ///// Construct a RepeatAttribute
28        ///// </summary>
29        ///// <param name="count">The number of times to run the test</param>
30        //public RepeatAttribute(int count)
31        //{
32        //    this.count = count;
33        //}
34
35        ///// <summary>
36        ///// Gets the number of times to run the test.
37        ///// </summary>
38        //public int Count
39        //{
40        //    get { return count; }
41        //}
42	}
43}