diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2017-07-03 01:43:55 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2017-07-03 01:43:55 +0300 |
commit | cbc43ad52755b0bf11c6134512fcb211d1a6f424 (patch) | |
tree | 342eef1c94da7463e85234379ae1122a0b0e7e55 /mcs/class/test-helpers | |
parent | 2efd64587f09dbd30db7858e21eb4a66d49fda6d (diff) |
[Microsoft.Build] Improve assert in BuildSubmissionTest.EndBuildWaitsForSubmissionCompletion
It started failing more frequently, let's see if we can get better data.
Also did the same change to a similar test.
Diffstat (limited to 'mcs/class/test-helpers')
-rw-r--r-- | mcs/class/test-helpers/NunitHelpers.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mcs/class/test-helpers/NunitHelpers.cs b/mcs/class/test-helpers/NunitHelpers.cs index f16683e7a50..5bc3211f89a 100644 --- a/mcs/class/test-helpers/NunitHelpers.cs +++ b/mcs/class/test-helpers/NunitHelpers.cs @@ -89,6 +89,11 @@ namespace NUnit.Framework Assert.That(arg1, Is.GreaterThan(arg2), message, args); } + public static void Greater(System.DateTime arg1, System.DateTime arg2, string message = null, params object[] args) + { + Assert.That(arg1, Is.GreaterThan(arg2), message, args); + } + public static void GreaterOrEqual(int arg1, int arg2, string message = null, params object[] args) { Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2), message, args); @@ -99,6 +104,16 @@ namespace NUnit.Framework Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2), message, args); } + public static void GreaterOrEqual(System.DateTime arg1, System.DateTime arg2, string message = null, params object[] args) + { + Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2), message, args); + } + + public static void GreaterOrEqual(System.TimeSpan arg1, System.TimeSpan arg2, string message = null, params object[] args) + { + Assert.That(arg1, Is.GreaterThanOrEqualTo(arg2), message, args); + } + public static void LessOrEqual (int arg1, int arg2, string message = null, params object[] args) { Assert.That(arg1, Is.LessThanOrEqualTo(arg2), message, args); |