Skip to content

Should Type.AssemblyQualifiedName be cached? #118389

@Youssef1313

Description

@Youssef1313

On an MSTest project with huge parameterized test, I see:

Image

Test class looks like this:

[TestClass]
public class TestClass
{
    [TestMethod]
    [DynamicData(nameof(Data))]
    public void Test3(int a, int b)
    {
        if (b == 10000000)
        {

        }
    }

    public static IEnumerable<(int A, int B)> Data
    {
        get
        {
            for (int i = 0; i < 10000000; i++)
            {
                yield return (i, i + 1);
            }
        }
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions