File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/NHibernate.Test/ReadOnly Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -637,7 +637,7 @@ public void MergeDetachedChildWithNewParentCommitWithReadOnlyChild()
637637 Assert . That ( child . Version , Is . EqualTo ( 1 ) ) ;
638638 Assert . That ( parent , Is . Not . Null ) ;
639639 Assert . That ( parent . Children . Count , Is . EqualTo ( 0 ) ) ;
640- Assert . That ( parent . Version , Is . EqualTo ( 1 ) ) ;
640+ Assert . That ( parent . Version , Is . EqualTo ( 2 ) ) ;
641641 s . SetReadOnly ( parent , true ) ;
642642 s . SetReadOnly ( child , true ) ;
643643 s . Delete ( parent ) ;
@@ -688,8 +688,7 @@ public void GetChildMakeReadOnlyThenMergeDetachedChildWithNewParent()
688688 Assert . That ( child . Version , Is . EqualTo ( 1 ) ) ;
689689 Assert . That ( parent , Is . Not . Null ) ;
690690 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 ) ) ;
693692 s . SetReadOnly ( parent , true ) ;
694693 s . SetReadOnly ( child , true ) ;
695694 s . Delete ( parent ) ;
You can’t perform that action at this time.
0 commit comments