We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 360c879 commit b42d64fCopy full SHA for b42d64f
src/NHibernate.Test/NHSpecificTest/NH1821/Fixture.cs
@@ -1,3 +1,4 @@
1
+using System;
2
using System.Text.RegularExpressions;
3
using NHibernate.Dialect;
4
using NUnit.Framework;
@@ -30,14 +31,9 @@ from Entity
30
31
32
Regex whitespaces = new Regex(@"\s+", RegexOptions.IgnoreCase | RegexOptions.Multiline | RegexOptions.Compiled);
33
- Assert.AreEqual(
34
- 0
35
-,
36
- string.Compare(
37
- whitespaces.Replace(sql, " ").Trim(),
38
- whitespaces.Replace(renderedSql, " ").Trim(),
39
- true
40
- ) );
+ Assert.That(
+ whitespaces.Replace(renderedSql, " ").Trim(),
+ Is.EqualTo(whitespaces.Replace(sql, " ").Trim()).IgnoreCase);
41
}
42
43
0 commit comments