Skip to content

TestFramework - unable to run tests with long string in parameters #1069

@torbacz

Description

@torbacz

Library/API/IoT binding

nanoFramework.TestFramework

Visual Studio version

No response

.NET nanoFramework extension version

No response

Target name(s)

No response

Firmware version

No response

Device capabilities

No response

Description

When passing long string into test method as parameter from DataRow attribute - tests are failing.

How to reproduce

  1. Create new unit test

  2. Run example: [DataRow("adsdasdasasddassaadsdasdasasddassaadsdasdasasddassaadsdasdasasddassaadsdasdasasddassaadsdasdasasddassa")]
    public void Test(string data)
    {

    }

Exception from logs:
[nanoTestAdapter]: Fatal exception when processing test results: >>>startIndex cannot be larger than length of string.
Parameter name: startIndex

Expected behaviour

No response

Screenshots

No response

Sample project or code

No response

Aditional information

No response

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