Skip to content

Test throw with wrong arguments count when using float #3184

@Dona278

Description

@Dona278

This test

[Test]
[Arguments("helloworld", "HELLowORLD", 0.19999999f)]
public async Task GetLevenshteinScore(string? value1, string? value2, float score)
{
    await Assert.That(StringHelper.GetLevenshteinScore(value1, value2)).IsEqualTo(score);
}

fail with

Expected exactly 3 arguments, but got 4

There is an issue with arguments in source generated part because from VS Test Explorer the test show 0, 20000000 instead of 0.19999999:
Image

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