Skip to content

Dynamically Created Tests TestMethodArguments are always null and not marked as error #3173

Description

Example

private static void AddTestTest(DynamicTestBuilderContext context)
{
    string test = "abc";

    context.AddTest(new DynamicTest<DbSetTests>
    {
        TestMethod = (@class) => @class.Test(DynamicTestHelper.Argument<string>()),
        TestMethodArguments = [test],
    });
}

private async Task Test(string test)
{
    await Assert.That(test).IsNotNull();
}
Image

Expected:

  • Parameter not null
  • Test correctly asserted (currently its marked as success)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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