Skip to content

Commit a1342af

Browse files
committed
#37 adding a simple assert to the test
1 parent 30ff838 commit a1342af

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Src/NHibernate.Envers.Tests/NetSpecific/Integration/ManyToOne/LazyProperty/LazyPropertyTest.cs

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

45
namespace NHibernate.Envers.Tests.NetSpecific.Integration.ManyToOne.LazyProperty
56
{
@@ -25,16 +26,20 @@ protected override void Initialize()
2526
[Test]
2627
public void SavePersonProxyForFieldInterceptor()
2728
{
29+
long carId;
2830
using (var tx = Session.BeginTransaction())
2931
{
3032
var pers = Session.Query<Person>().Single(x => x.Id == id_pers1);
3133
var car = new Car
3234
{
3335
Owner = pers
3436
};
35-
id_pers1 = (long) Session.Save(car);
37+
carId = (long) Session.Save(car);
3638
tx.Commit();
3739
}
40+
41+
AuditReader().Find<Car>(carId, 2).Owner.Name
42+
.Should().Be.EqualTo("Hernan");
3843
}
3944
}
4045
}

0 commit comments

Comments
 (0)