@@ -853,7 +853,7 @@ public void ConnectUsingServiceIdentity_ClientSecret_ConStr()
853853 Assert . Null ( ex ) ;
854854 }
855855 // Check user before we validate connection
856- client . _connectionSvc . AuthenticationTypeInUse . Should ( ) . BeEquivalentTo ( Microsoft . PowerPlatform . Dataverse . Client . AuthenticationType . ClientSecret ) ;
856+ client . _connectionSvc . AuthenticationTypeInUse . Should ( ) . Be ( Microsoft . PowerPlatform . Dataverse . Client . AuthenticationType . ClientSecret ) ;
857857 client . _connectionSvc . AuthContext . Scopes . Should ( ) . BeEquivalentTo ( new string [ ] { $ "{ Conn_Url } /.default" } ) ;
858858 client . _connectionSvc . AuthContext . Account . Should ( ) . BeNull ( ) ;
859859 client . _connectionSvc . AuthContext . AccessToken . Should ( ) . NotBeNull ( ) ;
@@ -956,7 +956,7 @@ public void ConnectUsingUserIdentity_UIDPW_ConStr()
956956 Assert . True ( client . IsReady , "Failed to Create Connection via Connection string" ) ;
957957
958958 // Check user before we validate connection
959- client . _connectionSvc . AuthenticationTypeInUse . Should ( ) . BeEquivalentTo ( Microsoft . PowerPlatform . Dataverse . Client . AuthenticationType . OAuth ) ;
959+ client . _connectionSvc . AuthenticationTypeInUse . Should ( ) . Be ( Microsoft . PowerPlatform . Dataverse . Client . AuthenticationType . OAuth ) ;
960960 client . _connectionSvc . AuthContext . Scopes . Should ( ) . BeEquivalentTo ( new string [ ] { $ "{ Conn_Url } //user_impersonation" } ) ;
961961 client . _connectionSvc . AuthContext . Account . Should ( ) . NotBeNull ( ) ;
962962 client . _connectionSvc . AuthContext . IdToken . Should ( ) . NotBeEmpty ( ) ;
@@ -999,7 +999,7 @@ public void ConnectUsingUserIdentity_UIDPW_CtorV1_Discovery()
999999 Assert . True ( client . IsReady , "Failed to Create Connection via Constructor - Discovery" ) ;
10001000
10011001 // Check user before we validate connection
1002- client . _connectionSvc . AuthenticationTypeInUse . Should ( ) . BeEquivalentTo ( Microsoft . PowerPlatform . Dataverse . Client . AuthenticationType . OAuth ) ;
1002+ client . _connectionSvc . AuthenticationTypeInUse . Should ( ) . Be ( Microsoft . PowerPlatform . Dataverse . Client . AuthenticationType . OAuth ) ;
10031003 client . _connectionSvc . AuthContext . Account . Should ( ) . NotBeNull ( ) ;
10041004 client . _connectionSvc . AuthContext . IdToken . Should ( ) . NotBeEmpty ( ) ;
10051005 client . _connectionSvc . AuthContext . Account . Username . Should ( ) . BeEquivalentTo ( Conn_UserName ) ;
@@ -1029,7 +1029,7 @@ public void ConnectUsingUserIdentity_UIDPW_CtorV2()
10291029 Assert . True ( client . IsReady , "Failed to Create Connection via Constructor - Direct Connect" ) ;
10301030
10311031 // Check user before we validate connection
1032- client . _connectionSvc . AuthenticationTypeInUse . Should ( ) . BeEquivalentTo ( Microsoft . PowerPlatform . Dataverse . Client . AuthenticationType . OAuth ) ;
1032+ client . _connectionSvc . AuthenticationTypeInUse . Should ( ) . Be ( Microsoft . PowerPlatform . Dataverse . Client . AuthenticationType . OAuth ) ;
10331033 client . _connectionSvc . AuthContext . Scopes . Should ( ) . BeEquivalentTo ( new string [ ] { $ "{ Conn_Url } //user_impersonation" } ) ;
10341034 client . _connectionSvc . AuthContext . Account . Should ( ) . NotBeNull ( ) ;
10351035 client . _connectionSvc . AuthContext . IdToken . Should ( ) . NotBeEmpty ( ) ;
@@ -1083,7 +1083,7 @@ public void ConnectUsingUserIdentity_UIDPW_ConSetup()
10831083 ValidateConnection ( client ) ;
10841084
10851085 // Check user before we validate connection
1086- client . _connectionSvc . AuthenticationTypeInUse . Should ( ) . BeEquivalentTo ( Microsoft . PowerPlatform . Dataverse . Client . AuthenticationType . OAuth ) ;
1086+ client . _connectionSvc . AuthenticationTypeInUse . Should ( ) . Be ( Microsoft . PowerPlatform . Dataverse . Client . AuthenticationType . OAuth ) ;
10871087 client . _connectionSvc . AuthContext . Scopes . Should ( ) . BeEquivalentTo ( new string [ ] { $ "{ Conn_Url } /user_impersonation" } ) ;
10881088 client . _connectionSvc . AuthContext . Account . Should ( ) . NotBeNull ( ) ;
10891089 client . _connectionSvc . AuthContext . IdToken . Should ( ) . NotBeEmpty ( ) ;
0 commit comments