@@ -211,13 +211,10 @@ public void NtlmIncorrectExchangeTest()
211211            Assert . False ( fakeNtlmServer . IsAuthenticated ) ; 
212212        } 
213213
214-         [ ConditionalTheory ( nameof ( IsNtlmAvailable ) ) ] 
215-         [ InlineData ( true ) ] 
216-         [ InlineData ( false ) ] 
217-         public  void  NtlmEncryptionTest ( bool  serverSupportsEncryption ) 
214+         [ ConditionalFact ( nameof ( IsNtlmAvailable ) ) ] 
215+         public  void  NtlmEncryptionTest ( ) 
218216        { 
219217            using  FakeNtlmServer  fakeNtlmServer  =  new  FakeNtlmServer ( s_testCredentialRight ) ; 
220-             fakeNtlmServer . SupportsEncryption  =  serverSupportsEncryption ; 
221218
222219            NegotiateAuthentication  ntAuth  =  new  NegotiateAuthentication ( 
223220                new  NegotiateAuthenticationClientOptions 
@@ -239,22 +236,15 @@ public void NtlmEncryptionTest(bool serverSupportsEncryption)
239236            Assert . Equal ( FakeNtlmServer . Flags . NegotiateSeal ,  ( fakeNtlmServer . InitialClientFlags  &  FakeNtlmServer . Flags . NegotiateSeal ) ) ; 
240237
241238            byte [ ] ?  authenticateBlob  =  ntAuth . GetOutgoingBlob ( challengeBlob ,  out  statusCode ) ; 
239+             Assert . Equal ( NegotiateAuthenticationStatusCode . Completed ,  statusCode ) ; 
240+             Assert . NotNull ( authenticateBlob ) ; 
242241
243-             if  ( serverSupportsEncryption ) 
244-             { 
245-                 Assert . Equal ( NegotiateAuthenticationStatusCode . Completed ,  statusCode ) ; 
246-                 Assert . NotNull ( authenticateBlob ) ; 
247-                 // Validate that the NegotiateSeal flag survived the full exchange 
248-                 Assert . Equal ( FakeNtlmServer . Flags . NegotiateSeal ,  ( fakeNtlmServer . NegotiatedFlags  &  FakeNtlmServer . Flags . NegotiateSeal ) ) ; 
249- 
250-                 byte [ ] ?  empty  =  fakeNtlmServer . GetOutgoingBlob ( authenticateBlob ) ; 
251-                 Assert . Null ( empty ) ; 
252-                 Assert . True ( fakeNtlmServer . IsAuthenticated ) ; 
253-             } 
254-             else 
255-             { 
256-                 Assert . Equal ( NegotiateAuthenticationStatusCode . QopNotSupported ,  statusCode ) ; 
257-             } 
242+             byte [ ] ?  empty  =  fakeNtlmServer . GetOutgoingBlob ( authenticateBlob ) ; 
243+             Assert . Null ( empty ) ; 
244+             Assert . True ( fakeNtlmServer . IsAuthenticated ) ; 
245+ 
246+             // Validate that the NegotiateSeal flag survived the full exchange 
247+             Assert . Equal ( FakeNtlmServer . Flags . NegotiateSeal ,  ( fakeNtlmServer . NegotiatedFlags  &  FakeNtlmServer . Flags . NegotiateSeal ) ) ; 
258248        } 
259249
260250        [ ConditionalFact ( nameof ( IsNtlmAvailable ) ) ] 
0 commit comments