@@ -310,7 +310,7 @@ public void Compare()
310
310
differences . Tables [ 0 ] . Source . Indexes [ 1 ] . IncludedColumns . Should ( ) . HaveCount ( 0 ) ;
311
311
differences . Tables [ 0 ] . Source . Indexes [ 1 ] . IsUnique . Should ( ) . BeTrue ( ) ;
312
312
differences . Tables [ 0 ] . Source . Indexes [ 1 ] . Name . Should ( ) . Be ( "PrimaryKeyDifference" ) ;
313
- differences . Tables [ 0 ] . Source . Indexes [ 1 ] . Type . Should ( ) . Be ( "CLUSTERED " ) ;
313
+ differences . Tables [ 0 ] . Source . Indexes [ 1 ] . Type . Should ( ) . Be ( "NONCLUSTERED " ) ;
314
314
315
315
differences . Tables [ 0 ] . Target . Indexes . Should ( ) . HaveCount ( 2 ) ;
316
316
differences . Tables [ 0 ] . Target . Indexes [ 0 ] . Columns . Should ( ) . HaveCount ( 2 ) ;
@@ -344,14 +344,17 @@ public void Compare()
344
344
differences . Tables [ 0 ] . Indexes [ 0 ] . Target . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Target . Indexes [ 0 ] ) ;
345
345
differences . Tables [ 0 ] . Indexes [ 0 ] . Type . Should ( ) . Be ( SqlObjectDifferenceType . Different ) ;
346
346
347
- differences . Tables [ 0 ] . Indexes [ 1 ] . Properties . Should ( ) . HaveCount ( 0 ) ;
347
+ differences . Tables [ 0 ] . Indexes [ 1 ] . Properties . Should ( ) . HaveCount ( 1 ) ;
348
+ differences . Tables [ 0 ] . Indexes [ 1 ] . Properties [ 0 ] . Name . Should ( ) . Be ( "Type" ) ;
349
+ differences . Tables [ 0 ] . Indexes [ 1 ] . Properties [ 0 ] . Source . Should ( ) . Be ( "NONCLUSTERED" ) ;
350
+ differences . Tables [ 0 ] . Indexes [ 1 ] . Properties [ 0 ] . Target . Should ( ) . Be ( "CLUSTERED" ) ;
348
351
differences . Tables [ 0 ] . Indexes [ 1 ] . Source . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Source . Indexes [ 1 ] ) ;
349
352
differences . Tables [ 0 ] . Indexes [ 1 ] . Target . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Target . Indexes [ 1 ] ) ;
350
353
differences . Tables [ 0 ] . Indexes [ 1 ] . Type . Should ( ) . Be ( SqlObjectDifferenceType . Different ) ;
351
354
352
355
// Tables / Primary keys
353
356
differences . Tables [ 0 ] . Source . PrimaryKey . Name . Should ( ) . Be ( "PrimaryKeyDifference" ) ;
354
- differences . Tables [ 0 ] . Source . PrimaryKey . Type . Should ( ) . Be ( "CLUSTERED " ) ;
357
+ differences . Tables [ 0 ] . Source . PrimaryKey . Type . Should ( ) . Be ( "NONCLUSTERED " ) ;
355
358
differences . Tables [ 0 ] . Source . PrimaryKey . Columns . Should ( ) . HaveCount ( 2 ) ;
356
359
differences . Tables [ 0 ] . Source . PrimaryKey . Columns [ 0 ] . Name . Should ( ) . Be ( "Type" ) ;
357
360
differences . Tables [ 0 ] . Source . PrimaryKey . Columns [ 0 ] . Position . Should ( ) . Be ( 1 ) ;
@@ -374,7 +377,10 @@ public void Compare()
374
377
differences . Tables [ 0 ] . PrimaryKey . Columns [ 1 ] . Target . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Target . PrimaryKey . Columns [ 1 ] ) ;
375
378
differences . Tables [ 0 ] . PrimaryKey . Columns [ 1 ] . Type . Should ( ) . Be ( SqlObjectDifferenceType . Different ) ;
376
379
377
- differences . Tables [ 0 ] . PrimaryKey . Properties . Should ( ) . BeEmpty ( ) ;
380
+ differences . Tables [ 0 ] . PrimaryKey . Properties . Should ( ) . HaveCount ( 1 ) ;
381
+ differences . Tables [ 0 ] . PrimaryKey . Properties [ 0 ] . Name . Should ( ) . Be ( "Type" ) ;
382
+ differences . Tables [ 0 ] . PrimaryKey . Properties [ 0 ] . Source . Should ( ) . Be ( "NONCLUSTERED" ) ;
383
+ differences . Tables [ 0 ] . PrimaryKey . Properties [ 0 ] . Target . Should ( ) . Be ( "CLUSTERED" ) ;
378
384
differences . Tables [ 0 ] . PrimaryKey . Source . Should ( ) . Be ( differences . Tables [ 0 ] . Source . PrimaryKey ) ;
379
385
differences . Tables [ 0 ] . PrimaryKey . Target . Should ( ) . Be ( differences . Tables [ 0 ] . Target . PrimaryKey ) ;
380
386
differences . Tables [ 0 ] . PrimaryKey . Type . Should ( ) . Be ( SqlObjectDifferenceType . Different ) ;
@@ -412,7 +418,7 @@ public void Compare()
412
418
differences . Tables [ 0 ] . Source . UniqueConstraints [ 0 ] . Columns [ 1 ] . Name . Should ( ) . Be ( "MaxLength" ) ;
413
419
differences . Tables [ 0 ] . Source . UniqueConstraints [ 0 ] . Columns [ 1 ] . Position . Should ( ) . Be ( 2 ) ;
414
420
differences . Tables [ 0 ] . Source . UniqueConstraints [ 0 ] . Name . Should ( ) . Be ( "UniqueConstraintDifference" ) ;
415
- differences . Tables [ 0 ] . Source . UniqueConstraints [ 0 ] . Type . Should ( ) . Be ( "NONCLUSTERED " ) ;
421
+ differences . Tables [ 0 ] . Source . UniqueConstraints [ 0 ] . Type . Should ( ) . Be ( "CLUSTERED " ) ;
416
422
417
423
differences . Tables [ 0 ] . Target . UniqueConstraints . Should ( ) . HaveCount ( 1 ) ;
418
424
differences . Tables [ 0 ] . Target . UniqueConstraints [ 0 ] . Columns . Should ( ) . HaveCount ( 2 ) ;
@@ -424,7 +430,10 @@ public void Compare()
424
430
differences . Tables [ 0 ] . Target . UniqueConstraints [ 0 ] . Type . Should ( ) . Be ( "NONCLUSTERED" ) ;
425
431
426
432
differences . Tables [ 0 ] . UniqueConstraints . Should ( ) . HaveCount ( 1 ) ;
427
- differences . Tables [ 0 ] . UniqueConstraints [ 0 ] . Properties . Should ( ) . HaveCount ( 0 ) ;
433
+ differences . Tables [ 0 ] . UniqueConstraints [ 0 ] . Properties . Should ( ) . HaveCount ( 1 ) ;
434
+ differences . Tables [ 0 ] . UniqueConstraints [ 0 ] . Properties [ 0 ] . Name . Should ( ) . Be ( "Type" ) ;
435
+ differences . Tables [ 0 ] . UniqueConstraints [ 0 ] . Properties [ 0 ] . Source . Should ( ) . Be ( "CLUSTERED" ) ;
436
+ differences . Tables [ 0 ] . UniqueConstraints [ 0 ] . Properties [ 0 ] . Target . Should ( ) . Be ( "NONCLUSTERED" ) ;
428
437
differences . Tables [ 0 ] . UniqueConstraints [ 0 ] . Source . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Source . UniqueConstraints [ 0 ] ) ;
429
438
differences . Tables [ 0 ] . UniqueConstraints [ 0 ] . Target . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Target . UniqueConstraints [ 0 ] ) ;
430
439
differences . Tables [ 0 ] . UniqueConstraints [ 0 ] . Type . Should ( ) . Be ( SqlObjectDifferenceType . Different ) ;
0 commit comments