Skip to content

AssertIsTrue: Simplify Assertion does not offer automatic fix to apply #160

Closed
@robertMSFTE

Description

@robertMSFTE

Description

AssertIsTrue: Simplify Assertion does not offer automatic fix to apply.

Complete minimal example reproducing the issue

This gets a suggestion but there is no fix shown to apply in VS.

using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace TestProject1
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            Assert.IsTrue(true);
        }
    }
}

image

Expected behavior:

Fix suggestion should be shown.

Actual behavior:

Fix suggestion is not shown.

Versions

  • Which version of Fluent Assertions Analyzers are you using? FluentAssertions.Analyzers 0.17.2
  • Which .NET runtime and version are you targeting? .NET Core 3.1.

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