@@ -17,7 +17,8 @@ public void WhenCreateThenHasDefaultTypeAndGenerator()
17
17
var hbmId = new HbmCollectionId ( ) ;
18
18
new CollectionIdMapper ( hbmId ) ;
19
19
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 ) ;
21
22
}
22
23
23
24
[ Test ]
@@ -27,19 +28,21 @@ public void WhenSetGeneratorThenChangeType()
27
28
new CollectionIdMapper ( hbmId ) . Generator ( Generators . HighLow ) ;
28
29
29
30
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 ) ;
31
33
}
32
34
33
35
[ Test ]
34
36
public void WhenForceTypeThenNotChangeType ( )
35
37
{
36
38
var hbmId = new HbmCollectionId ( ) ;
37
39
var collectionIdMapper = new CollectionIdMapper ( hbmId ) ;
38
- collectionIdMapper . Type ( ( IIdentifierType ) NHibernateUtil . Int64 ) ;
40
+ collectionIdMapper . Type ( NHibernateUtil . Int64 ) ;
39
41
collectionIdMapper . Generator ( Generators . HighLow ) ;
40
42
41
43
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 ) ;
43
46
}
44
47
45
48
[ Test ]
0 commit comments