Skip to content

Adds Requires.ValidElements#44

Merged
AArnott merged 6 commits into
AArnott:masterfrom
scottdorman:master
Sep 27, 2020
Merged

Adds Requires.ValidElements#44
AArnott merged 6 commits into
AArnott:masterfrom
scottdorman:master

Conversation

@scottdorman

Copy link
Copy Markdown
Contributor

Closes #41, adds Requires.ValidElements method and associated unit tests.

…eline build treats this as an error while it was just a warning locally.
@codecov-commenter

codecov-commenter commented Sep 26, 2020

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.88%. Comparing base (2378284) to head (aa62127).

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #44      +/-   ##
==========================================
+ Coverage   88.21%   88.88%   +0.67%     
==========================================
  Files           9        9              
  Lines         263      279      +16     
==========================================
+ Hits          232      248      +16     
  Misses         31       31              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@AArnott AArnott left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for contributing. A few comments.

Comment thread src/Validation/Requires.cs Outdated
Comment thread test/Validation.Tests/RequiresTests.cs Outdated
Comment thread test/Validation.Tests/RequiresTests.cs
Comment thread test/Validation.Tests/RequiresTests.cs Outdated
Removed using directive grouping blank lines and set an .editorconfig value to control it.
Added additional tests to validate null value parameter, a predicate that throws an exception, and that the message formatting is correct. Also changed the Assert.Throws to use an overload that verifies the exception parameter name.
Comment thread .editorconfig
Comment thread src/Validation/Requires.cs Outdated
Comment thread src/Validation/Requires.cs Outdated
Comment thread src/Validation/Requires.cs Outdated
Comment thread src/Validation/Requires.cs Outdated

@AArnott AArnott left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks.

@AArnott AArnott merged commit a6a5350 into AArnott:master Sep 27, 2020
AArnott added a commit that referenced this pull request May 2, 2023
Add machine-wide .NET install support off Windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a ValidElements method to Requires

3 participants