Skip to content

Commit 5594016

Browse files
Generate async files
1 parent b42d64f commit 5594016

File tree

1 file changed

+4
-8
lines changed
  • src/NHibernate.Test/Async/NHSpecificTest/NH1821

1 file changed

+4
-8
lines changed

src/NHibernate.Test/Async/NHSpecificTest/NH1821/Fixture.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//------------------------------------------------------------------------------
99

1010

11+
using System;
1112
using System.Text.RegularExpressions;
1213
using NHibernate.Dialect;
1314
using NUnit.Framework;
@@ -41,14 +42,9 @@ from Entity
4142

4243
Regex whitespaces = new Regex(@"\s+", RegexOptions.IgnoreCase | RegexOptions.Multiline | RegexOptions.Compiled);
4344

44-
Assert.AreEqual(
45-
0
46-
,
47-
string.Compare(
48-
whitespaces.Replace(sql, " ").Trim(),
49-
whitespaces.Replace(renderedSql, " ").Trim(),
50-
true
51-
) );
45+
Assert.That(
46+
whitespaces.Replace(renderedSql, " ").Trim(),
47+
Is.EqualTo(whitespaces.Replace(sql, " ").Trim()).IgnoreCase);
5248
}
5349
}
5450
}

0 commit comments

Comments
 (0)