Show state on failed assertion in EmptyAiaResponseIsIgnored
authorKevin Jones <kevin@vcsjones.com>
Fri, 12 Feb 2021 19:38:55 +0000 (14:38 -0500)
committerGitHub <noreply@github.com>
Fri, 12 Feb 2021 19:38:55 +0000 (11:38 -0800)
src/libraries/System.Security.Cryptography.X509Certificates/tests/RevocationTests/AiaTests.cs

index b45b242..75f1d8e 100644 (file)
@@ -37,7 +37,8 @@ namespace System.Security.Cryptography.X509Certificates.Tests.RevocationTests
                 chain.ChainPolicy.RevocationMode = X509RevocationMode.NoCheck;
 
                 Assert.False(chain.Build(endEntity));
-                Assert.True(chain.AllStatusFlags().HasFlag(X509ChainStatusFlags.PartialChain), "expected partial chain");
+                X509ChainStatusFlags chainFlags = chain.AllStatusFlags();
+                Assert.True(chainFlags.HasFlag(X509ChainStatusFlags.PartialChain), $"expected partial chain flags, got {chainFlags}");
             }
         }