-
Notifications
You must be signed in to change notification settings - Fork 1
V10.0.2/minor fixes #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
4230fee
aa50a82
2c4cb73
051b68d
4457745
95f8f54
937d89c
4b120ec
aee41c6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -40,6 +40,7 @@ public override void ConfigureHost(Test hostTest) | |||||||||||||
| { | ||||||||||||||
| ArgumentNullException.ThrowIfNull(hostTest); | ||||||||||||||
| if (!HasTypes(hostTest.GetType(), typeof(WebHostTest<>))) { throw new ArgumentOutOfRangeException(nameof(hostTest), typeof(WebHostTest<>), $"{nameof(hostTest)} is not assignable from WebHostTest<T>."); } | ||||||||||||||
| if (!this.HasValidState()) { return; } // had to include this due to dual-call this method (one uncontrolled from xUnit library reflection magic; second controlled from this library) | ||||||||||||||
|
||||||||||||||
| if (!this.HasValidState()) { return; } // had to include this due to dual-call this method (one uncontrolled from xUnit library reflection magic; second controlled from this library) | |
| if (!this.HasValidState()) | |
| { | |
| Logger?.LogWarning("Exiting ConfigureHost early because HasValidState() returned false. This may indicate a configuration issue."); | |
| return; | |
| } // had to include this due to dual-call this method (one uncontrolled from xUnit library reflection magic; second controlled from this library) |
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -37,6 +37,7 @@ public virtual void ConfigureHost(Test hostTest) | |||||||||||||
| { | ||||||||||||||
| if (hostTest == null) { throw new ArgumentNullException(nameof(hostTest)); } | ||||||||||||||
| if (!HasTypes(hostTest.GetType(), typeof(HostTest<>))) { throw new ArgumentOutOfRangeException(nameof(hostTest), typeof(HostTest<>), $"{nameof(hostTest)} is not assignable from HostTest<T>."); } | ||||||||||||||
| if (!this.HasValidState()) { return; } // had to include this due to dual-call this method (one uncontrolled from xUnit library reflection magic; second controlled from this library) | ||||||||||||||
|
||||||||||||||
| if (!this.HasValidState()) { return; } // had to include this due to dual-call this method (one uncontrolled from xUnit library reflection magic; second controlled from this library) | |
| if (!this.HasValidState()) | |
| { | |
| Logger?.LogWarning("Exiting ConfigureHost early because the host is in an invalid state."); | |
| return; | |
| } // had to include this due to dual-call this method (one uncontrolled from xUnit library reflection magic; second controlled from this library) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing release note for ConfigureApplicationCallback invocation change
The PR summary and changelog mention switching to explicit
Invokesyntax forConfigureApplicationCallback, but this isn’t documented here. Please add an entry under Improvements to cover that change.🧰 Tools
🪛 LanguageTool
[uncategorized] ~8-~8: You might be missing the article “the” here.
Context: ...it.Hosting.AspNetCore namespace to exit ConfigureHost method if the fixture is not in a valid...
(AI_EN_LECTOR_MISSING_DETERMINER_THE)
🤖 Prompt for AI Agents