Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/nunit/src/NUnitCore/RepeatedTest.cs')
-rw-r--r--mcs/nunit/src/NUnitCore/RepeatedTest.cs45
1 files changed, 0 insertions, 45 deletions
diff --git a/mcs/nunit/src/NUnitCore/RepeatedTest.cs b/mcs/nunit/src/NUnitCore/RepeatedTest.cs
deleted file mode 100644
index 546bed56d6e..00000000000
--- a/mcs/nunit/src/NUnitCore/RepeatedTest.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-namespace NUnit.Extensions {
-
- using System;
-
- using NUnit.Framework;
- /// <summary>A Decorator that runs a test repeatedly.</summary>
- public class RepeatedTest: TestDecorator {
- private readonly int fTimesRepeat;
- /// <summary>
- ///
- /// </summary>
- /// <param name="test"></param>
- /// <param name="repeat"></param>
- public RepeatedTest(ITest test, int repeat) : base(test) {
- if (repeat < 0) {
- throw new ArgumentOutOfRangeException("repeat", "Repetition count must be > 0");
- }
- fTimesRepeat= repeat;
- }
- /// <summary>
- ///
- /// </summary>
- public override int CountTestCases {
- get { return base.CountTestCases * fTimesRepeat; }
- }
- /// <summary>
- ///
- /// </summary>
- /// <param name="result"></param>
- public override void Run(TestResult result) {
- for (int i= 0; i < fTimesRepeat; i++) {
- if (result.ShouldStop)
- break;
- base.Run(result);
- }
- }
- /// <summary>
- ///
- /// </summary>
- /// <returns></returns>
- public override string ToString() {
- return base.ToString()+"(repeated)";
- }
- }
-}