File tree 1 file changed +2
-3
lines changed
src/NHibernate.Test/ReadOnly
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -637,7 +637,7 @@ public void MergeDetachedChildWithNewParentCommitWithReadOnlyChild()
637
637
Assert . That ( child . Version , Is . EqualTo ( 1 ) ) ;
638
638
Assert . That ( parent , Is . Not . Null ) ;
639
639
Assert . That ( parent . Children . Count , Is . EqualTo ( 0 ) ) ;
640
- Assert . That ( parent . Version , Is . EqualTo ( 1 ) ) ;
640
+ Assert . That ( parent . Version , Is . EqualTo ( 2 ) ) ;
641
641
s . SetReadOnly ( parent , true ) ;
642
642
s . SetReadOnly ( child , true ) ;
643
643
s . Delete ( parent ) ;
@@ -688,8 +688,7 @@ public void GetChildMakeReadOnlyThenMergeDetachedChildWithNewParent()
688
688
Assert . That ( child . Version , Is . EqualTo ( 1 ) ) ;
689
689
Assert . That ( parent , Is . Not . Null ) ;
690
690
Assert . That ( parent . Children . Count , Is . EqualTo ( 0 ) ) ;
691
- Assert . That ( parent . Version , Is . EqualTo ( 1 ) ) ;
692
- // NH-specific: Hibernate incorrectly increments version number, NH does not
691
+ Assert . That ( parent . Version , Is . EqualTo ( 2 ) ) ;
693
692
s . SetReadOnly ( parent , true ) ;
694
693
s . SetReadOnly ( child , true ) ;
695
694
s . Delete ( parent ) ;
You can’t perform that action at this time.
0 commit comments