Skip to content

Conversation

dennisdoomen
Copy link
Member

@dennisdoomen dennisdoomen commented Oct 15, 2023

Instead of marking individual methods with the [CustomAssertion], you can now add the [assembly: CustomAssertionsAssembly] attribute to a file within the project to tell Fluent Assertions that all code in that assembly should be treated as custom assertion code.

Part of the solution to resolve #2002

@dennisdoomen dennisdoomen force-pushed the Feature/MarkAssemblyWithCustomAssertions branch from 1f42c6f to 96ba54a Compare October 15, 2023 18:06
@dennisdoomen dennisdoomen changed the title Introduced the [CustomAssertionsAssembly] to mark an entire assembly as one that contains custom assertions. Introduces the [CustomAssertionsAssembly] to mark an entire assembly as one that contains custom assertions. Oct 15, 2023
@github-actions
Copy link

github-actions bot commented Oct 15, 2023

Qodana for .NET

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

  1. Register at Qodana Cloud and configure the action
  2. Use GitHub Code Scanning with Qodana
  3. Host Qodana report at GitHub Pages
  4. Inspect and use qodana.sarif.json (see the Qodana SARIF format for details)

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/[email protected]
        with:
          upload-result: true
Contact Qodana team

Contact us at [email protected]

@dennisdoomen dennisdoomen changed the title Introduces the [CustomAssertionsAssembly] to mark an entire assembly as one that contains custom assertions. Introduces an attribute to mark an entire assembly as one that contains custom assertions. Oct 15, 2023
@dennisdoomen dennisdoomen marked this pull request as ready for review October 15, 2023 18:13
@dennisdoomen dennisdoomen force-pushed the Feature/MarkAssemblyWithCustomAssertions branch from 96ba54a to 4a87d62 Compare October 15, 2023 19:31
@coveralls
Copy link

Pull Request Test Coverage Report for Build 6526061737

  • 5 of 6 (83.33%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.01%) to 97.397%

Changes Missing Coverage Covered Lines Changed/Added Lines %
Src/FluentAssertions/CallerIdentifier.cs 5 6 83.33%
Totals Coverage Status
Change from base Build 6525413142: -0.01%
Covered Lines: 11655
Relevant Lines: 11846

💛 - Coveralls

@dennisdoomen dennisdoomen force-pushed the Feature/MarkAssemblyWithCustomAssertions branch from 4a87d62 to 2ce50ca Compare October 17, 2023 17:58
@dennisdoomen dennisdoomen requested a review from jnyrup October 17, 2023 17:58
@dennisdoomen dennisdoomen force-pushed the Feature/MarkAssemblyWithCustomAssertions branch 2 times, most recently from 2e22021 to b2ae129 Compare October 17, 2023 23:31
This was referenced Sep 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move DataSet/DataTable/DataRow assertions to separate library
4 participants