Skip to content

Commit ba21fbb

Browse files
committed
Removed SharpTestEx to fix test project build
1 parent 1359b4e commit ba21fbb

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

src/NHibernate.Test/NHSpecificTest/NH3570/BiFixture.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using NUnit.Framework;
3-
using SharpTestsEx;
43

54
namespace NHibernate.Test.NHSpecificTest.NH3570
65
{
@@ -29,8 +28,8 @@ public void ShouldNotSaveRemoveChild()
2928
{
3029
using (s.BeginTransaction())
3130
{
32-
s.Get<BiParent>(id).Children.Count.Should().Be.EqualTo(1);
33-
s.CreateCriteria<BiChild>().List().Count.Should().Be.EqualTo(1);
31+
Assert.That(s.Get<BiParent>(id).Children.Count, Is.EqualTo(1));
32+
Assert.That(s.CreateCriteria<BiChild>().List().Count, Is.EqualTo(1));
3433
}
3534
}
3635
}

src/NHibernate.Test/NHSpecificTest/NH3570/UniFixture.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using NUnit.Framework;
3-
using SharpTestsEx;
43

54
namespace NHibernate.Test.NHSpecificTest.NH3570
65
{
@@ -29,8 +28,8 @@ public void ShouldNotSaveRemoveChild()
2928
{
3029
using (s.BeginTransaction())
3130
{
32-
s.Get<UniParent>(id).Children.Count.Should().Be.EqualTo(1);
33-
s.CreateCriteria<UniChild>().List().Count.Should().Be.EqualTo(1);
31+
Assert.That(s.Get<UniParent>(id).Children.Count, Is.EqualTo(1));
32+
Assert.That(s.CreateCriteria<UniChild>().List().Count, Is.EqualTo(1));
3433
}
3534
}
3635
}

src/NHibernate.Test/Stateless/FetchingLazyCollections/LazyCollectionFetchTests.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using NHibernate.Mapping.ByCode.Conformist;
77
using NHibernate.Linq;
88
using NUnit.Framework;
9-
using SharpTestsEx;
109

1110
namespace NHibernate.Test.Stateless.FetchingLazyCollections
1211
{
@@ -138,13 +137,13 @@ public void ShouldWorkLoadingComplexEntities()
138137
Assert.That(hf.Count, Is.EqualTo(1));
139138
Assert.That(hf[0].Father.Name, Is.EqualTo(humanFather));
140139
Assert.That(hf[0].Mother.Name, Is.EqualTo(humanMother));
141-
NHibernateUtil.IsInitialized(hf[0].Childs).Should("Lazy collection should be initialized").Be.True();
140+
Assert.That(NHibernateUtil.IsInitialized(hf[0].Childs), Is.True, "Lazy collection should be initialized");
142141

143142
IList<Family<Reptile>> rf = s.Query<Family<Reptile>>().FetchMany(f => f.Childs).ToList();
144143
Assert.That(rf.Count, Is.EqualTo(1));
145144
Assert.That(rf[0].Father.Description, Is.EqualTo(crocodileFather));
146145
Assert.That(rf[0].Mother.Description, Is.EqualTo(crocodileMother));
147-
NHibernateUtil.IsInitialized(hf[0].Childs).Should("Lazy collection should be initialized").Be.True();
146+
Assert.That(NHibernateUtil.IsInitialized(hf[0].Childs), Is.True, "Lazy collection should be initialized");
148147

149148
tx.Commit();
150149
}

0 commit comments

Comments
 (0)