Skip to content

Commit 70464f1

Browse files
committed
Added a test to reproduce the issue resolved in the previous commit - The .Not operator wasn't working when used from within the HasManyConvention.
1 parent c8647f2 commit 70464f1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/FluentNHibernate.Testing/ConventionsTests/ApplyingToModel/HasManyConventionTests.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,15 @@ public void ShouldSetNotFoundProperty()
184184
VerifyModel(x => x.Relationship.NotFound.ShouldEqual("ignore"));
185185
}
186186

187+
188+
[Test]
189+
public void ShouldSetInversePropertyToFalseWhenUsingNot()
190+
{
191+
Convention(x => x.Not.Inverse());
192+
193+
VerifyModel(x => x.Inverse.ShouldBeFalse());
194+
}
195+
187196
#region Helpers
188197

189198
private void Convention(Action<IOneToManyCollectionInstance> convention)

0 commit comments

Comments
 (0)