Skip to content

MSTEST0037 false positive in 3.11.0-preview.25455.2 #6525

@avivanoff

Description

@avivanoff

The following code produces MSTEST0037 false positive:

[TestClass]
public sealed class Test1
{
    [TestMethod]
    public void TestMethod1()
    {
        var buffer = new Byte[10];
        using (var actual = new MemoryStream())
        {
            Assert.AreEqual(buffer.Length, actual.Read(buffer, 0, buffer.Length));
        }
    }
}

Sample project.

Metadata

Metadata

Assignees

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions