Skip to content

X509Certificates.Tests: Non-serializable data ('System.Object[]') #35807

@vcsjones

Description

@vcsjones

Running tests in X509Certificates.Tests gives a few test warnings, I think uncovered when #35285 was merged:

[xUnit.net 00:00:00.72] System.Security.Cryptography.X509Certificates.Tests: Non-serializable data ('System.Object[]') found for 'System.Security.Cryptography.X509Certificates.Test
s.X500DistinguishedNameEncodingTests.EncodeSingleRdn'; falling back to single test case.
[xUnit.net 00:00:00.72] System.Security.Cryptography.X509Certificates.Tests: Non-serializable data ('System.Object[]') found for 'System.Security.Cryptography.X509Certificates.Test
s.X500DistinguishedNameEncodingTests.EncodeWithFlags'; falling back to single test case.
[xUnit.net 00:00:00.72] System.Security.Cryptography.X509Certificates.Tests: Non-serializable data ('System.Object[]') found for 'System.Security.Cryptography.X509Certificates.Test
s.X500DistinguishedNameEncodingTests.CheckParserBoundaryCases'; falling back to single test case.
[xUnit.net 00:00:00.80] System.Security.Cryptography.X509Certificates.Tests: Non-serializable data ('System.Object[]') found for 'System.Security.Cryptography.X509Certificates.Test
s.CertificateCreation.ECDsaX509SignatureGeneratorTests.PublicKeyEncoding'; falling back to single test case.

This leads me to believe that there are theories which, when MemberData returns nonserializable data.

What is the impact of this? Does this mean only a single test case is being run and coverage isn't happening, or does it mean that it "looks" like a single test but is actually running all of the cases?

/cc @ViktorHofer

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions