@@ -403,7 +403,13 @@ public async Task CompareAsync()
403
403
differences . Tables [ 0 ] . Source . Indexes [ 0 ] . Columns [ 1 ] . Name . Should ( ) . Be ( "Type" ) ;
404
404
differences . Tables [ 0 ] . Source . Indexes [ 0 ] . Columns [ 1 ] . Position . Should ( ) . Be ( 2 ) ;
405
405
differences . Tables [ 0 ] . Source . Indexes [ 0 ] . Filter . Should ( ) . Be ( "([Type]=(1234))" ) ;
406
- differences . Tables [ 0 ] . Source . Indexes [ 0 ] . IncludedColumns . Should ( ) . HaveCount ( 0 ) ;
406
+ differences . Tables [ 0 ] . Source . Indexes [ 0 ] . IncludedColumns . Should ( ) . HaveCount ( 3 ) ;
407
+ differences . Tables [ 0 ] . Source . Indexes [ 0 ] . IncludedColumns [ 0 ] . Name . Should ( ) . Be ( "Precision" ) ;
408
+ differences . Tables [ 0 ] . Source . Indexes [ 0 ] . IncludedColumns [ 0 ] . Position . Should ( ) . Be ( 1 ) ;
409
+ differences . Tables [ 0 ] . Source . Indexes [ 0 ] . IncludedColumns [ 1 ] . Name . Should ( ) . Be ( "Scale" ) ;
410
+ differences . Tables [ 0 ] . Source . Indexes [ 0 ] . IncludedColumns [ 1 ] . Position . Should ( ) . Be ( 2 ) ;
411
+ differences . Tables [ 0 ] . Source . Indexes [ 0 ] . IncludedColumns [ 2 ] . Name . Should ( ) . Be ( "Identity" ) ;
412
+ differences . Tables [ 0 ] . Source . Indexes [ 0 ] . IncludedColumns [ 2 ] . Position . Should ( ) . Be ( 3 ) ;
407
413
differences . Tables [ 0 ] . Source . Indexes [ 0 ] . IsUnique . Should ( ) . BeFalse ( ) ;
408
414
differences . Tables [ 0 ] . Source . Indexes [ 0 ] . Name . Should ( ) . Be ( "IndexDifference" ) ;
409
415
differences . Tables [ 0 ] . Source . Indexes [ 0 ] . Type . Should ( ) . Be ( "NONCLUSTERED" ) ;
@@ -425,7 +431,11 @@ public async Task CompareAsync()
425
431
differences . Tables [ 0 ] . Target . Indexes [ 0 ] . Columns [ 1 ] . Name . Should ( ) . Be ( "ForeignKeyId" ) ;
426
432
differences . Tables [ 0 ] . Target . Indexes [ 0 ] . Columns [ 1 ] . Position . Should ( ) . Be ( 2 ) ;
427
433
differences . Tables [ 0 ] . Target . Indexes [ 0 ] . Filter . Should ( ) . Be ( "([Type]='Target')" ) ;
428
- differences . Tables [ 0 ] . Target . Indexes [ 0 ] . IncludedColumns . Should ( ) . HaveCount ( 0 ) ;
434
+ differences . Tables [ 0 ] . Target . Indexes [ 0 ] . IncludedColumns . Should ( ) . HaveCount ( 2 ) ;
435
+ differences . Tables [ 0 ] . Target . Indexes [ 0 ] . IncludedColumns [ 0 ] . Name . Should ( ) . Be ( "Scale" ) ;
436
+ differences . Tables [ 0 ] . Target . Indexes [ 0 ] . IncludedColumns [ 0 ] . Position . Should ( ) . Be ( 1 ) ;
437
+ differences . Tables [ 0 ] . Target . Indexes [ 0 ] . IncludedColumns [ 1 ] . Name . Should ( ) . Be ( "Precision" ) ;
438
+ differences . Tables [ 0 ] . Target . Indexes [ 0 ] . IncludedColumns [ 1 ] . Position . Should ( ) . Be ( 2 ) ;
429
439
differences . Tables [ 0 ] . Target . Indexes [ 0 ] . IsUnique . Should ( ) . BeFalse ( ) ;
430
440
differences . Tables [ 0 ] . Target . Indexes [ 0 ] . Name . Should ( ) . Be ( "IndexDifference" ) ;
431
441
differences . Tables [ 0 ] . Target . Indexes [ 0 ] . Type . Should ( ) . Be ( "NONCLUSTERED" ) ;
@@ -442,6 +452,40 @@ public async Task CompareAsync()
442
452
443
453
differences . Tables [ 0 ] . Indexes . Should ( ) . HaveCount ( 2 ) ;
444
454
455
+ differences . Tables [ 0 ] . Indexes [ 0 ] . Columns . Should ( ) . HaveCount ( 2 ) ;
456
+ differences . Tables [ 0 ] . Indexes [ 0 ] . Columns [ 0 ] . Properties . Should ( ) . HaveCount ( 1 ) ;
457
+ differences . Tables [ 0 ] . Indexes [ 0 ] . Columns [ 0 ] . Properties [ 0 ] . Name . Should ( ) . Be ( "Position" ) ;
458
+ differences . Tables [ 0 ] . Indexes [ 0 ] . Columns [ 0 ] . Properties [ 0 ] . Source . Should ( ) . Be ( 2 ) ;
459
+ differences . Tables [ 0 ] . Indexes [ 0 ] . Columns [ 0 ] . Properties [ 0 ] . Target . Should ( ) . Be ( 1 ) ;
460
+ differences . Tables [ 0 ] . Indexes [ 0 ] . Columns [ 0 ] . Source . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Source . Indexes [ 0 ] . Columns [ 1 ] ) ;
461
+ differences . Tables [ 0 ] . Indexes [ 0 ] . Columns [ 0 ] . Target . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Target . Indexes [ 0 ] . Columns [ 0 ] ) ;
462
+ differences . Tables [ 0 ] . Indexes [ 0 ] . Columns [ 0 ] . Type . Should ( ) . Be ( SqlObjectDifferenceType . Different ) ;
463
+ differences . Tables [ 0 ] . Indexes [ 0 ] . Columns [ 1 ] . Properties . Should ( ) . HaveCount ( 1 ) ;
464
+ differences . Tables [ 0 ] . Indexes [ 0 ] . Columns [ 1 ] . Properties [ 0 ] . Name . Should ( ) . Be ( "Position" ) ;
465
+ differences . Tables [ 0 ] . Indexes [ 0 ] . Columns [ 1 ] . Properties [ 0 ] . Source . Should ( ) . Be ( 1 ) ;
466
+ differences . Tables [ 0 ] . Indexes [ 0 ] . Columns [ 1 ] . Properties [ 0 ] . Target . Should ( ) . Be ( 2 ) ;
467
+ differences . Tables [ 0 ] . Indexes [ 0 ] . Columns [ 1 ] . Source . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Source . Indexes [ 0 ] . Columns [ 0 ] ) ;
468
+ differences . Tables [ 0 ] . Indexes [ 0 ] . Columns [ 1 ] . Target . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Target . Indexes [ 0 ] . Columns [ 1 ] ) ;
469
+ differences . Tables [ 0 ] . Indexes [ 0 ] . Columns [ 1 ] . Type . Should ( ) . Be ( SqlObjectDifferenceType . Different ) ;
470
+ differences . Tables [ 0 ] . Indexes [ 0 ] . IncludedColumns . Should ( ) . HaveCount ( 3 ) ;
471
+ differences . Tables [ 0 ] . Indexes [ 0 ] . IncludedColumns [ 0 ] . Properties . Should ( ) . HaveCount ( 1 ) ;
472
+ differences . Tables [ 0 ] . Indexes [ 0 ] . IncludedColumns [ 0 ] . Properties [ 0 ] . Name . Should ( ) . Be ( "Position" ) ;
473
+ differences . Tables [ 0 ] . Indexes [ 0 ] . IncludedColumns [ 0 ] . Properties [ 0 ] . Source . Should ( ) . Be ( 2 ) ;
474
+ differences . Tables [ 0 ] . Indexes [ 0 ] . IncludedColumns [ 0 ] . Properties [ 0 ] . Target . Should ( ) . Be ( 1 ) ;
475
+ differences . Tables [ 0 ] . Indexes [ 0 ] . IncludedColumns [ 0 ] . Source . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Source . Indexes [ 0 ] . IncludedColumns [ 1 ] ) ;
476
+ differences . Tables [ 0 ] . Indexes [ 0 ] . IncludedColumns [ 0 ] . Target . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Target . Indexes [ 0 ] . IncludedColumns [ 0 ] ) ;
477
+ differences . Tables [ 0 ] . Indexes [ 0 ] . IncludedColumns [ 0 ] . Type . Should ( ) . Be ( SqlObjectDifferenceType . Different ) ;
478
+ differences . Tables [ 0 ] . Indexes [ 0 ] . IncludedColumns [ 1 ] . Properties . Should ( ) . HaveCount ( 1 ) ;
479
+ differences . Tables [ 0 ] . Indexes [ 0 ] . IncludedColumns [ 1 ] . Properties [ 0 ] . Name . Should ( ) . Be ( "Position" ) ;
480
+ differences . Tables [ 0 ] . Indexes [ 0 ] . IncludedColumns [ 1 ] . Properties [ 0 ] . Source . Should ( ) . Be ( 1 ) ;
481
+ differences . Tables [ 0 ] . Indexes [ 0 ] . IncludedColumns [ 1 ] . Properties [ 0 ] . Target . Should ( ) . Be ( 2 ) ;
482
+ differences . Tables [ 0 ] . Indexes [ 0 ] . IncludedColumns [ 1 ] . Source . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Source . Indexes [ 0 ] . IncludedColumns [ 0 ] ) ;
483
+ differences . Tables [ 0 ] . Indexes [ 0 ] . IncludedColumns [ 1 ] . Target . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Target . Indexes [ 0 ] . IncludedColumns [ 1 ] ) ;
484
+ differences . Tables [ 0 ] . Indexes [ 0 ] . IncludedColumns [ 1 ] . Type . Should ( ) . Be ( SqlObjectDifferenceType . Different ) ;
485
+ differences . Tables [ 0 ] . Indexes [ 0 ] . IncludedColumns [ 2 ] . Properties . Should ( ) . HaveCount ( 0 ) ;
486
+ differences . Tables [ 0 ] . Indexes [ 0 ] . IncludedColumns [ 2 ] . Source . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Source . Indexes [ 0 ] . IncludedColumns [ 2 ] ) ;
487
+ differences . Tables [ 0 ] . Indexes [ 0 ] . IncludedColumns [ 2 ] . Target . Should ( ) . BeNull ( ) ;
488
+ differences . Tables [ 0 ] . Indexes [ 0 ] . IncludedColumns [ 2 ] . Type . Should ( ) . Be ( SqlObjectDifferenceType . MissingInTarget ) ;
445
489
differences . Tables [ 0 ] . Indexes [ 0 ] . Properties . Should ( ) . HaveCount ( 1 ) ;
446
490
differences . Tables [ 0 ] . Indexes [ 0 ] . Properties [ 0 ] . Name . Should ( ) . Be ( "Filter" ) ;
447
491
differences . Tables [ 0 ] . Indexes [ 0 ] . Properties [ 0 ] . Source . Should ( ) . Be ( "([Type]=(1234))" ) ;
@@ -450,6 +494,22 @@ public async Task CompareAsync()
450
494
differences . Tables [ 0 ] . Indexes [ 0 ] . Target . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Target . Indexes [ 0 ] ) ;
451
495
differences . Tables [ 0 ] . Indexes [ 0 ] . Type . Should ( ) . Be ( SqlObjectDifferenceType . Different ) ;
452
496
497
+ differences . Tables [ 0 ] . Indexes [ 1 ] . Columns . Should ( ) . HaveCount ( 2 ) ;
498
+ differences . Tables [ 0 ] . Indexes [ 1 ] . Columns [ 0 ] . Properties . Should ( ) . HaveCount ( 1 ) ;
499
+ differences . Tables [ 0 ] . Indexes [ 1 ] . Columns [ 0 ] . Properties [ 0 ] . Name . Should ( ) . Be ( "Position" ) ;
500
+ differences . Tables [ 0 ] . Indexes [ 1 ] . Columns [ 0 ] . Properties [ 0 ] . Source . Should ( ) . Be ( 2 ) ;
501
+ differences . Tables [ 0 ] . Indexes [ 1 ] . Columns [ 0 ] . Properties [ 0 ] . Target . Should ( ) . Be ( 1 ) ;
502
+ differences . Tables [ 0 ] . Indexes [ 1 ] . Columns [ 0 ] . Source . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Source . Indexes [ 1 ] . Columns [ 1 ] ) ;
503
+ differences . Tables [ 0 ] . Indexes [ 1 ] . Columns [ 0 ] . Target . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Target . Indexes [ 1 ] . Columns [ 0 ] ) ;
504
+ differences . Tables [ 0 ] . Indexes [ 1 ] . Columns [ 0 ] . Type . Should ( ) . Be ( SqlObjectDifferenceType . Different ) ;
505
+ differences . Tables [ 0 ] . Indexes [ 1 ] . Columns [ 1 ] . Properties . Should ( ) . HaveCount ( 1 ) ;
506
+ differences . Tables [ 0 ] . Indexes [ 1 ] . Columns [ 1 ] . Properties [ 0 ] . Name . Should ( ) . Be ( "Position" ) ;
507
+ differences . Tables [ 0 ] . Indexes [ 1 ] . Columns [ 1 ] . Properties [ 0 ] . Source . Should ( ) . Be ( 1 ) ;
508
+ differences . Tables [ 0 ] . Indexes [ 1 ] . Columns [ 1 ] . Properties [ 0 ] . Target . Should ( ) . Be ( 2 ) ;
509
+ differences . Tables [ 0 ] . Indexes [ 1 ] . Columns [ 1 ] . Source . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Source . Indexes [ 1 ] . Columns [ 0 ] ) ;
510
+ differences . Tables [ 0 ] . Indexes [ 1 ] . Columns [ 1 ] . Target . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Target . Indexes [ 1 ] . Columns [ 1 ] ) ;
511
+ differences . Tables [ 0 ] . Indexes [ 1 ] . Columns [ 1 ] . Type . Should ( ) . Be ( SqlObjectDifferenceType . Different ) ;
512
+ differences . Tables [ 0 ] . Indexes [ 1 ] . IncludedColumns . Should ( ) . HaveCount ( 0 ) ;
453
513
differences . Tables [ 0 ] . Indexes [ 1 ] . Properties . Should ( ) . HaveCount ( 1 ) ;
454
514
differences . Tables [ 0 ] . Indexes [ 1 ] . Properties [ 0 ] . Name . Should ( ) . Be ( "Type" ) ;
455
515
differences . Tables [ 0 ] . Indexes [ 1 ] . Properties [ 0 ] . Source . Should ( ) . Be ( "NONCLUSTERED" ) ;
@@ -578,7 +638,9 @@ public async Task CompareAsync()
578
638
differences . Tables [ 1 ] . Target . Indexes [ 0 ] . Columns [ 0 ] . Name . Should ( ) . Be ( "TargetName" ) ;
579
639
differences . Tables [ 1 ] . Target . Indexes [ 0 ] . Columns [ 0 ] . Position . Should ( ) . Be ( 1 ) ;
580
640
differences . Tables [ 1 ] . Target . Indexes [ 0 ] . Filter . Should ( ) . Be ( "([TargetName]='')" ) ;
581
- differences . Tables [ 1 ] . Target . Indexes [ 0 ] . IncludedColumns . Should ( ) . HaveCount ( 0 ) ;
641
+ differences . Tables [ 1 ] . Target . Indexes [ 0 ] . IncludedColumns . Should ( ) . HaveCount ( 1 ) ;
642
+ differences . Tables [ 1 ] . Target . Indexes [ 0 ] . IncludedColumns [ 0 ] . Name . Should ( ) . Be ( "TargetForeignKeyId" ) ;
643
+ differences . Tables [ 1 ] . Target . Indexes [ 0 ] . IncludedColumns [ 0 ] . Position . Should ( ) . Be ( 1 ) ;
582
644
differences . Tables [ 1 ] . Target . Indexes [ 0 ] . IsUnique . Should ( ) . BeFalse ( ) ;
583
645
differences . Tables [ 1 ] . Target . Indexes [ 0 ] . Name . Should ( ) . Be ( "IndexTarget" ) ;
584
646
differences . Tables [ 1 ] . Target . Indexes [ 1 ] . Columns . Should ( ) . HaveCount ( 1 ) ;
@@ -627,7 +689,9 @@ public async Task CompareAsync()
627
689
differences . Tables [ 2 ] . Source . Indexes [ 0 ] . Columns [ 0 ] . Name . Should ( ) . Be ( "SourceName" ) ;
628
690
differences . Tables [ 2 ] . Source . Indexes [ 0 ] . Columns [ 0 ] . Position . Should ( ) . Be ( 1 ) ;
629
691
differences . Tables [ 2 ] . Source . Indexes [ 0 ] . Filter . Should ( ) . Be ( "([SourceName]='')" ) ;
630
- differences . Tables [ 2 ] . Source . Indexes [ 0 ] . IncludedColumns . Should ( ) . HaveCount ( 0 ) ;
692
+ differences . Tables [ 2 ] . Source . Indexes [ 0 ] . IncludedColumns . Should ( ) . HaveCount ( 1 ) ;
693
+ differences . Tables [ 2 ] . Source . Indexes [ 0 ] . IncludedColumns [ 0 ] . Name . Should ( ) . Be ( "SourceForeignKeyId" ) ;
694
+ differences . Tables [ 2 ] . Source . Indexes [ 0 ] . IncludedColumns [ 0 ] . Position . Should ( ) . Be ( 1 ) ;
631
695
differences . Tables [ 2 ] . Source . Indexes [ 0 ] . IsUnique . Should ( ) . BeFalse ( ) ;
632
696
differences . Tables [ 2 ] . Source . Indexes [ 0 ] . Name . Should ( ) . Be ( "IndexSource" ) ;
633
697
differences . Tables [ 2 ] . Source . Indexes [ 1 ] . Columns . Should ( ) . HaveCount ( 1 ) ;
0 commit comments