Skip to content

Commit b42d64f

Browse files
committed
Improve condition
1 parent 360c879 commit b42d64f

File tree

1 file changed

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

1 file changed

+4
-8
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
using System;
12
using System.Text.RegularExpressions;
23
using NHibernate.Dialect;
34
using NUnit.Framework;
@@ -30,14 +31,9 @@ from Entity
3031

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

33-
Assert.AreEqual(
34-
0
35-
,
36-
string.Compare(
37-
whitespaces.Replace(sql, " ").Trim(),
38-
whitespaces.Replace(renderedSql, " ").Trim(),
39-
true
40-
) );
34+
Assert.That(
35+
whitespaces.Replace(renderedSql, " ").Trim(),
36+
Is.EqualTo(whitespaces.Replace(sql, " ").Trim()).IgnoreCase);
4137
}
4238
}
4339
}

0 commit comments

Comments
 (0)