PageRenderTime 36ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
C# | 43 lines | 9 code | 5 blank | 29 comment | 0 complexity | 49f4a2a016a6a746ab004146e48c1d1b MD5 | raw file
Possible License(s): GPL-2.0
  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. using System;
  7. namespace NUnit.Framework
  8. {
  9. /// <summary>
  10. /// RepeatAttribute may be applied to test case in order
  11. /// to run it multiple times.
  12. /// </summary>
  13. [AttributeUsage(AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
  14. public class RepeatAttribute : PropertyAttribute
  15. {
  16. /// <summary>
  17. /// Construct a RepeatAttribute
  18. /// </summary>
  19. /// <param name="count">The number of times to run the test</param>
  20. public RepeatAttribute(int count) : base(count) { }
  21. //private int count;
  22. ///// <summary>
  23. ///// Construct a RepeatAttribute
  24. ///// </summary>
  25. ///// <param name="count">The number of times to run the test</param>
  26. //public RepeatAttribute(int count)
  27. //{
  28. // this.count = count;
  29. //}
  30. ///// <summary>
  31. ///// Gets the number of times to run the test.
  32. ///// </summary>
  33. //public int Count
  34. //{
  35. // get { return count; }
  36. //}
  37. }
  38. }