home.social

#shouldly — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #shouldly, aggregated by home.social.

  1. If you are "unhappy" with license changes in FluentAssertions since version v8.0, you can force it to stay on v7.x.

    .NET (Core), project file:

    <code>
    <ItemGroup>
    <PackageReference Include="FluentAssertions" Version="[7.0,8.0)" />
    </ItemGroup>
    </code>

    .NET Framework, packages.config:

    <code>
    <packages>
    <package id="FluentAssertions" version="7.0.0" allowedVersions="[7,8)" targetFramework="net48" />
    </packages>
    </code>

    Or just use Shouldly in future projects...

    hth

    #FluentAssertions #Shouldly #NuGet #UnitTesting #dotnet