This is an automated email from the ASF dual-hosted git repository. nightowl888 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/lucenenet.git
commit 9c469599cd0412fdd59470be39f83791da724050 Author: Shad Storhaug <[email protected]> AuthorDate: Mon Jun 29 09:01:57 2020 +0700 Lucene.Net.TestFramework: Using Assert.That is several times slower than Assert.IsFalse (#295) --- src/Lucene.Net.TestFramework.NUnit/Support/TestFramework/Assert.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Lucene.Net.TestFramework.NUnit/Support/TestFramework/Assert.cs b/src/Lucene.Net.TestFramework.NUnit/Support/TestFramework/Assert.cs index 3a2be20..2e42805 100644 --- a/src/Lucene.Net.TestFramework.NUnit/Support/TestFramework/Assert.cs +++ b/src/Lucene.Net.TestFramework.NUnit/Support/TestFramework/Assert.cs @@ -592,7 +592,7 @@ namespace Lucene.Net.TestFramework // The evaluated condition public static void False(bool condition) { - _NUnit.Assert.That(condition, _NUnit.Is.False); + _NUnit.Assert.False(condition); } // @@ -605,7 +605,7 @@ namespace Lucene.Net.TestFramework // The evaluated condition public static void IsFalse(bool condition) { - _NUnit.Assert.That(condition, _NUnit.Is.False); + _NUnit.Assert.IsFalse(condition); } // @@ -624,7 +624,7 @@ namespace Lucene.Net.TestFramework // Array of objects to be used in formatting the message public static void IsFalse(bool condition, string message, params object[] args) { - _NUnit.Assert.That(condition, _NUnit.Is.False, message, args); + _NUnit.Assert.IsFalse(condition, message, args); } //
