@@ -1207,16 +1207,16 @@ public void SyncRoot()
12071207 var hash1 = new Hashtable ( ) ;
12081208 var hash2 = new Hashtable ( ) ;
12091209
1210- Assert . NotEqual ( hash1 . SyncRoot , hash2 . SyncRoot ) ;
1211- Assert . Equal ( hash1 . SyncRoot . GetType ( ) , typeof ( object ) ) ;
1210+ Assert . NotSame ( hash1 . SyncRoot , hash2 . SyncRoot ) ;
1211+ Assert . Equal ( hash1 . SyncRoot . GetType ( ) , typeof ( Hashtable ) ) ;
12121212
12131213 // Cloned hashtables have different SyncRoots
12141214 hash1 = new Hashtable ( ) ;
12151215 hash2 = Hashtable . Synchronized ( hash1 ) ;
12161216 Hashtable hash3 = ( Hashtable ) hash2 . Clone ( ) ;
12171217
1218- Assert . NotEqual ( hash2 . SyncRoot , hash3 . SyncRoot ) ;
1219- Assert . NotEqual ( hash1 . SyncRoot , hash3 . SyncRoot ) ;
1218+ Assert . NotSame ( hash2 . SyncRoot , hash3 . SyncRoot ) ;
1219+ Assert . NotSame ( hash1 . SyncRoot , hash3 . SyncRoot ) ;
12201220
12211221 // Testing SyncRoot is not as simple as its implementation looks like. This is the working
12221222 // scenario we have in mind.
@@ -1236,11 +1236,11 @@ public void SyncRoot()
12361236 _hashGrandDaughter = Hashtable . Synchronized ( hashSon ) ;
12371237 _hashDaughter = Hashtable . Synchronized ( hashMother ) ;
12381238
1239+ Assert . Same ( hashSon . SyncRoot , hashMother . SyncRoot ) ;
12391240 Assert . Equal ( hashSon . SyncRoot , hashMother . SyncRoot ) ;
1240- Assert . Equal ( hashSon . SyncRoot , hashMother . SyncRoot ) ;
1241- Assert . Equal ( _hashGrandDaughter . SyncRoot , hashMother . SyncRoot ) ;
1242- Assert . Equal ( _hashDaughter . SyncRoot , hashMother . SyncRoot ) ;
1243- Assert . Equal ( hashSon . SyncRoot , hashMother . SyncRoot ) ;
1241+ Assert . Same ( _hashGrandDaughter . SyncRoot , hashMother . SyncRoot ) ;
1242+ Assert . Same ( _hashDaughter . SyncRoot , hashMother . SyncRoot ) ;
1243+ Assert . Same ( hashSon . SyncRoot , hashMother . SyncRoot ) ;
12441244
12451245 // We are going to rumble with the Hashtables with some threads
12461246 int iNumberOfWorkers = 30 ;
0 commit comments