Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix CastingTest.ToUpperInvariant test

It did check on ToUpper rather than ToUpperInvariant
  • Loading branch information...
commit 897117a056c2153b9c27c32fc3825e24c42a0bfa 1 parent 03a96f8
@hazzik hazzik authored
Showing with 44 additions and 44 deletions.
  1. +44 −44 src/NHibernate.Test/Linq/CasingTest.cs
View
88 src/NHibernate.Test/Linq/CasingTest.cs
@@ -3,47 +3,47 @@
namespace NHibernate.Test.Linq
{
- [TestFixture]
- public class CasingTest : LinqTestCase
- {
- [Test]
- public void ToUpper()
- {
- var name = (from e in db.Employees
- where e.EmployeeId == 1
- select e.FirstName.ToUpper())
- .Single();
- Assert.AreEqual("NANCY", name);
- }
-
- [Test]
- public void ToUpperInvariant()
- {
- var name = (from e in db.Employees
- where e.EmployeeId == 1
- select e.FirstName.ToUpper())
- .Single();
- Assert.AreEqual("NANCY", name);
- }
-
- [Test]
- public void ToLower()
- {
- var name = (from e in db.Employees
- where e.EmployeeId == 1
- select e.FirstName.ToLower())
- .Single();
- Assert.AreEqual("nancy", name);
- }
-
- [Test]
- public void ToLowerInvariant()
- {
- var name = (from e in db.Employees
- where e.EmployeeId == 1
- select e.FirstName.ToLowerInvariant())
- .Single();
- Assert.AreEqual("nancy", name);
- }
- }
-}
+ [TestFixture]
+ public class CasingTest : LinqTestCase
+ {
+ [Test]
+ public void ToUpper()
+ {
+ var name = (from e in db.Employees
+ where e.EmployeeId == 1
+ select e.FirstName.ToUpper()).Single();
+
+ Assert.That(name, Is.EqualTo("NANCY"));
+ }
+
+ [Test]
+ public void ToUpperInvariant()
+ {
+ var name = (from e in db.Employees
+ where e.EmployeeId == 1
+ select e.FirstName.ToUpperInvariant()).Single();
+
+ Assert.That(name, Is.EqualTo("NANCY"));
+ }
+
+ [Test]
+ public void ToLower()
+ {
+ var name = (from e in db.Employees
+ where e.EmployeeId == 1
+ select e.FirstName.ToLower()).Single();
+
+ Assert.That(name, Is.EqualTo("nancy"));
+ }
+
+ [Test]
+ public void ToLowerInvariant()
+ {
+ var name = (from e in db.Employees
+ where e.EmployeeId == 1
+ select e.FirstName.ToLowerInvariant()).Single();
+
+ Assert.That(name, Is.EqualTo("nancy"));
+ }
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.