Skip to content

Commit 55c79b7

Browse files
committed
NH-2716 - Modify test case as suggested
Closes #1007
1 parent fb544b0 commit 55c79b7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/NHibernate.Test/Async/LazyOneToOne/LazyOneToOneTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public async Task LazyAsync()
7272

7373
p2 = await (s.CreateQuery("from Person where name='Emmanuel'").UniqueResultAsync<Person>());
7474
Assert.That(p2.Employee, Is.Null);
75+
Assert.That(p2.Employee, Is.Null);
7576
await (t.CommitAsync());
7677
s.Close();
7778

@@ -86,6 +87,7 @@ public async Task LazyAsync()
8687

8788
p2 = await (s.GetAsync<Person>("Emmanuel"));
8889
Assert.That(p2.Employee, Is.Null);
90+
Assert.That(p2.Employee, Is.Null);
8991
await (s.DeleteAsync(p2));
9092
await (s.DeleteAsync(old));
9193
await (s.DeleteAsync(p));

src/NHibernate.Test/LazyOneToOne/LazyOneToOneTest.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public void Lazy()
6161

6262
p2 = s.CreateQuery("from Person where name='Emmanuel'").UniqueResult<Person>();
6363
Assert.That(p2.Employee, Is.Null);
64+
Assert.That(p2.Employee, Is.Null);
6465
t.Commit();
6566
s.Close();
6667

@@ -75,6 +76,7 @@ public void Lazy()
7576

7677
p2 = s.Get<Person>("Emmanuel");
7778
Assert.That(p2.Employee, Is.Null);
79+
Assert.That(p2.Employee, Is.Null);
7880
s.Delete(p2);
7981
s.Delete(old);
8082
s.Delete(p);

0 commit comments

Comments
 (0)