@@ -17,7 +17,8 @@ public void WhenCreateThenHasDefaultTypeAndGenerator()
1717 var hbmId = new HbmCollectionId ( ) ;
1818 new CollectionIdMapper ( hbmId ) ;
1919 Assert . That ( hbmId . generator . @class , Is . Not . Null . And . Not . Empty ) ;
20- Assert . That ( hbmId . type , Is . Not . Null . And . Not . Empty ) ;
20+ Assert . That ( hbmId . type1 , Is . Not . Null . And . Not . Empty ) ;
21+ Assert . That ( hbmId . type , Is . Null ) ;
2122 }
2223
2324 [ Test ]
@@ -27,19 +28,21 @@ public void WhenSetGeneratorThenChangeType()
2728 new CollectionIdMapper ( hbmId ) . Generator ( Generators . HighLow ) ;
2829
2930 Assert . That ( hbmId . generator . @class , Is . EqualTo ( "hilo" ) ) ;
30- Assert . That ( hbmId . type . ToLowerInvariant ( ) , Does . Contain ( "int" ) ) ;
31+ Assert . That ( hbmId . type1 . ToLowerInvariant ( ) , Does . Contain ( "int" ) ) ;
32+ Assert . That ( hbmId . type , Is . Null ) ;
3133 }
3234
3335 [ Test ]
3436 public void WhenForceTypeThenNotChangeType ( )
3537 {
3638 var hbmId = new HbmCollectionId ( ) ;
3739 var collectionIdMapper = new CollectionIdMapper ( hbmId ) ;
38- collectionIdMapper . Type ( ( IIdentifierType ) NHibernateUtil . Int64 ) ;
40+ collectionIdMapper . Type ( NHibernateUtil . Int64 ) ;
3941 collectionIdMapper . Generator ( Generators . HighLow ) ;
4042
4143 Assert . That ( hbmId . generator . @class , Is . EqualTo ( "hilo" ) ) ;
42- Assert . That ( hbmId . type , Is . EqualTo ( "Int64" ) ) ;
44+ Assert . That ( hbmId . type1 , Is . EqualTo ( "Int64" ) ) ;
45+ Assert . That ( hbmId . type , Is . Null ) ;
4346 }
4447
4548 [ Test ]
0 commit comments