dotnet / roslyn-sdk

Roslyn-SDK templates and Syntax Visualizer
MIT License
512 stars 257 forks source link

Replace Classic NUnit Assertions with Constraints Model to Support NUnit 4 #1133

Closed CodingFlow closed 10 months ago

CodingFlow commented 10 months ago

Using NUnit analyzer to automate the conversion from classic NUnit assertions to constraints model assertions as suggested in the migration guide to NUnit 4.0. This is required to support using the test classes in source generator consuming projects that want to upgrade to NUnit 4.0.

Should fix #1127.

CodingFlow commented 10 months ago

@CodingFlow please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@dotnet-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@dotnet-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@dotnet-policy-service agree company="Microsoft"

Contributor License Agreement

@dotnet-policy-service agree

CodingFlow commented 10 months ago

Not sure why there test failures related to trying to target .Net 8. 😕

sharwell commented 10 months ago

@CodingFlow I'll get the test issues fixed and come back to this.