}
}
- [ActiveIssue(36124, TestPlatforms.Windows)]
[Fact]
public static void BuildInvalidSignatureTwice()
{
}
else
{
- Assert.False(valid, $"Chain is valid on execution {iter}");
-
- Assert.Equal(3, chain.ChainElements.Count);
+ // These asserts are "most informative first".
+ // (There was an interval where valid was reporting as true in CI, but
+ // that is the least informative failure)
// Clear UntrustedRoot, if it happened.
allFlags &= ~X509ChainStatusFlags.UntrustedRoot;
Assert.Equal(
X509ChainStatusFlags.NotSignatureValid,
allFlags);
+
+ Assert.Equal(3, chain.ChainElements.Count);
+
+ Assert.False(valid, $"Chain is valid on execution {iter}");
}
chainHolder.DisposeChainElements();