Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove assert preventing empty PKCS7 exports (#59812)
An empty PKCS7 collection is valid, so don't require the certHandles count to be greater than 0. Before: ``` DOTNET : ((null) warning) Process terminated due to " at System.Diagnostics.DebugProvider.Fail(String message, String detailMessage) DOTNET : at System.Diagnostics.Debug.Fail(String message, String detailMessage) DOTNET : at System.Diagnostics.Debug.Assert(Boolean condition, String message, String detailMessage) DOTNET : at System.Diagnostics.Debug.Assert(Boolean condition) ``` After: ``` [PASS] System.Security.Cryptography.X509Certificates.Tests.CollectionTests.ExportPkcs7_Empty ```
- Loading branch information