diff --git a/Issue4281/UnitTest1.cs b/Issue4281/UnitTest1.cs index 993d9b6..ed3c461 100644 --- a/Issue4281/UnitTest1.cs +++ b/Issue4281/UnitTest1.cs @@ -55,6 +55,13 @@ public void TestDelayed() Assert.That(()=>Count(),Is.GreaterThan(10).After(2).Seconds.PollEvery(500)); } + [Test] + public void TestDelayedWithoutPollEvery() + { + stopWatch.Start(); + Assert.That(() => Count(), Is.GreaterThan(10).After(2000,500)); + } + private int Count() { var ts = stopWatch.Elapsed; diff --git a/Issue4491/GlobalUsings.cs b/Issue4491/GlobalUsings.cs new file mode 100644 index 0000000..cefced4 --- /dev/null +++ b/Issue4491/GlobalUsings.cs @@ -0,0 +1 @@ +global using NUnit.Framework; \ No newline at end of file diff --git a/Issue4491/Issue4491.csproj b/Issue4491/Issue4491.csproj new file mode 100644 index 0000000..d25582b --- /dev/null +++ b/Issue4491/Issue4491.csproj @@ -0,0 +1,20 @@ + + + + net6.0 + enable + enable + + false + true + + + + + + + + + + + diff --git a/Issue4491/UnitTest1.cs b/Issue4491/UnitTest1.cs new file mode 100644 index 0000000..a279589 --- /dev/null +++ b/Issue4491/UnitTest1.cs @@ -0,0 +1,20 @@ +namespace Issue4491; + +public class Tests +{ + [Test] + [Repeat(30)] + public void Test1() + { + bool x = true; + Assert.That(x, Is.False); + } + + [Test] + [Repeat(30)] + public void Test2() + { + bool x = true; + Assert.That(x, Is.True); + } +} \ No newline at end of file