Add integration coverage for lightweight roots with args and generics#139
Open
NikolayPianikov wants to merge 15 commits intodevfrom
Open
Add integration coverage for lightweight roots with args and generics#139NikolayPianikov wants to merge 15 commits intodevfrom
NikolayPianikov wants to merge 15 commits intodevfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
RootKinds.Lightbehavior to ensure lightweight roots support root arguments and generic type parameters and their combinations.Description
tests/Pure.DI.IntegrationTests/LightweightRootsTests.cswith ~32 xUnit tests covering lightweight roots with single/multiple root arguments, named and tagged args, and max-arity (Func<...>limits).class,struct,new()), plus combinations of generics with root arguments and different marker types (TT,TT1,TT2,TT3).Static | Light,Exposed | Light, and visibility combinations (Public,Internal,Private,Protected) as well as negative tests that assert compilation/runtime failures for wrong argument types, missing arguments, and violated generic constraints.[Fact],RunAsync(),Optionsfor language/version control, and Given/When/Then comments, and assert bothresult.Successandresult.StdOutwhere applicable.Testing
dotnet test, but the command failed in this environment because thedotnetruntime is not available (execution error:bash: command not found: dotnet).RunAsync()when executed.Codex Task