Skip to content

NotSupportedException with primitives other than bool and int #155

@John-Leitch

Description

@John-Leitch

XUnit throws a NotSupportedException in some cases when primitives other than bool and int are used. This is especially confusing when encountered from VS test explorer because little context is available.

Exception

Image

Repro

namespace TestProject1
{
    public class UnitTest1
    {
        [Theory, CombinatorialData]
        public void Test1(uint test)
        {
            var prim = typeof(StringComparison).IsPrimitive;
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions