@@ -535,21 +535,22 @@ public async Task CompareAsync()
535535 differences . Tables [ 0 ] . Target . PrimaryKey . Columns [ 1 ] . Name . Should ( ) . Be ( "Type" ) ;
536536 differences . Tables [ 0 ] . Target . PrimaryKey . Columns [ 1 ] . Position . Should ( ) . Be ( 2 ) ;
537537
538- differences . Tables [ 0 ] . PrimaryKey . Columns . Should ( ) . HaveCount ( 2 ) ;
539- differences . Tables [ 0 ] . PrimaryKey . Columns [ 0 ] . Source . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Source . PrimaryKey . Columns [ 1 ] ) ;
540- differences . Tables [ 0 ] . PrimaryKey . Columns [ 0 ] . Target . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Target . PrimaryKey . Columns [ 0 ] ) ;
541- differences . Tables [ 0 ] . PrimaryKey . Columns [ 0 ] . Type . Should ( ) . Be ( SqlObjectDifferenceType . Different ) ;
542- differences . Tables [ 0 ] . PrimaryKey . Columns [ 1 ] . Source . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Source . PrimaryKey . Columns [ 0 ] ) ;
543- differences . Tables [ 0 ] . PrimaryKey . Columns [ 1 ] . Target . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Target . PrimaryKey . Columns [ 1 ] ) ;
544- differences . Tables [ 0 ] . PrimaryKey . Columns [ 1 ] . Type . Should ( ) . Be ( SqlObjectDifferenceType . Different ) ;
545-
546- differences . Tables [ 0 ] . PrimaryKey . Properties . Should ( ) . HaveCount ( 1 ) ;
547- differences . Tables [ 0 ] . PrimaryKey . Properties [ 0 ] . Name . Should ( ) . Be ( "Type" ) ;
548- differences . Tables [ 0 ] . PrimaryKey . Properties [ 0 ] . Source . Should ( ) . Be ( "NONCLUSTERED" ) ;
549- differences . Tables [ 0 ] . PrimaryKey . Properties [ 0 ] . Target . Should ( ) . Be ( "CLUSTERED" ) ;
550- differences . Tables [ 0 ] . PrimaryKey . Source . Should ( ) . Be ( differences . Tables [ 0 ] . Source . PrimaryKey ) ;
551- differences . Tables [ 0 ] . PrimaryKey . Target . Should ( ) . Be ( differences . Tables [ 0 ] . Target . PrimaryKey ) ;
552- differences . Tables [ 0 ] . PrimaryKey . Type . Should ( ) . Be ( SqlObjectDifferenceType . Different ) ;
538+ differences . Tables [ 0 ] . PrimaryKeys . Should ( ) . HaveCount ( 1 ) ;
539+ differences . Tables [ 0 ] . PrimaryKeys [ 0 ] . Columns . Should ( ) . HaveCount ( 2 ) ;
540+ differences . Tables [ 0 ] . PrimaryKeys [ 0 ] . Columns [ 0 ] . Source . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Source . PrimaryKey . Columns [ 1 ] ) ;
541+ differences . Tables [ 0 ] . PrimaryKeys [ 0 ] . Columns [ 0 ] . Target . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Target . PrimaryKey . Columns [ 0 ] ) ;
542+ differences . Tables [ 0 ] . PrimaryKeys [ 0 ] . Columns [ 0 ] . Type . Should ( ) . Be ( SqlObjectDifferenceType . Different ) ;
543+ differences . Tables [ 0 ] . PrimaryKeys [ 0 ] . Columns [ 1 ] . Source . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Source . PrimaryKey . Columns [ 0 ] ) ;
544+ differences . Tables [ 0 ] . PrimaryKeys [ 0 ] . Columns [ 1 ] . Target . Should ( ) . BeSameAs ( differences . Tables [ 0 ] . Target . PrimaryKey . Columns [ 1 ] ) ;
545+ differences . Tables [ 0 ] . PrimaryKeys [ 0 ] . Columns [ 1 ] . Type . Should ( ) . Be ( SqlObjectDifferenceType . Different ) ;
546+
547+ differences . Tables [ 0 ] . PrimaryKeys [ 0 ] . Properties . Should ( ) . HaveCount ( 1 ) ;
548+ differences . Tables [ 0 ] . PrimaryKeys [ 0 ] . Properties [ 0 ] . Name . Should ( ) . Be ( "Type" ) ;
549+ differences . Tables [ 0 ] . PrimaryKeys [ 0 ] . Properties [ 0 ] . Source . Should ( ) . Be ( "NONCLUSTERED" ) ;
550+ differences . Tables [ 0 ] . PrimaryKeys [ 0 ] . Properties [ 0 ] . Target . Should ( ) . Be ( "CLUSTERED" ) ;
551+ differences . Tables [ 0 ] . PrimaryKeys [ 0 ] . Source . Should ( ) . Be ( differences . Tables [ 0 ] . Source . PrimaryKey ) ;
552+ differences . Tables [ 0 ] . PrimaryKeys [ 0 ] . Target . Should ( ) . Be ( differences . Tables [ 0 ] . Target . PrimaryKey ) ;
553+ differences . Tables [ 0 ] . PrimaryKeys [ 0 ] . Type . Should ( ) . Be ( SqlObjectDifferenceType . Different ) ;
553554
554555 // Tables / Triggers
555556 differences . Tables [ 0 ] . Source . Triggers . Should ( ) . HaveCount ( 1 ) ;
@@ -607,7 +608,7 @@ public async Task CompareAsync()
607608 // Missing tables
608609 differences . Tables [ 1 ] . Columns . Should ( ) . BeEmpty ( ) ;
609610 differences . Tables [ 1 ] . Indexes . Should ( ) . BeEmpty ( ) ;
610- differences . Tables [ 1 ] . PrimaryKey . Should ( ) . BeNull ( ) ;
611+ differences . Tables [ 1 ] . PrimaryKeys . Should ( ) . BeEmpty ( ) ;
611612 differences . Tables [ 1 ] . Source . Should ( ) . BeNull ( ) ;
612613 differences . Tables [ 1 ] . UniqueConstraints . Should ( ) . BeEmpty ( ) ;
613614 differences . Tables [ 1 ] . Target . CheckConstraints . Should ( ) . HaveCount ( 1 ) ;
@@ -667,7 +668,7 @@ public async Task CompareAsync()
667668
668669 differences . Tables [ 2 ] . Columns . Should ( ) . BeEmpty ( ) ;
669670 differences . Tables [ 2 ] . Indexes . Should ( ) . BeEmpty ( ) ;
670- differences . Tables [ 2 ] . PrimaryKey . Should ( ) . BeNull ( ) ;
671+ differences . Tables [ 2 ] . PrimaryKeys . Should ( ) . BeEmpty ( ) ;
671672 differences . Tables [ 2 ] . UniqueConstraints . Should ( ) . BeEmpty ( ) ;
672673 differences . Tables [ 2 ] . Source . CheckConstraints . Should ( ) . HaveCount ( 1 ) ;
673674 differences . Tables [ 2 ] . Source . CheckConstraints [ 0 ] . Name . Should ( ) . Be ( "CheckConstraintSource" ) ;
0 commit comments