Skip to content

Reflection context tests working - #77999

Merged
steveharter merged 13 commits into
dotnet:mainfrom
JosieBigler:reflection-context-tests-working
Dec 9, 2022
Merged

steveharter merged 13 commits into
dotnet:mainfrom
JosieBigler:reflection-context-tests-working

Conversation

@JosieBigler

@JosieBigler JosieBigler commented Nov 8, 2022 •

Copy link
Copy Markdown
Contributor

Contributes to #26506

@ghost ghost added community-contribution Indicates that the PR has been added by a community member area-System.Reflection labels Nov 8, 2022
@ghost

ghost commented Nov 8, 2022

Copy link
Copy Markdown

Tagging subscribers to this area: @dotnet/area-system-reflection
See info in area-owners.md if you want to be subscribed.

Issue Details

null

Author: JosieBigler
Assignees: -
Labels:

area-System.Reflection, community-contribution

Milestone: -

public int field = 2;
public SecondTestObject(string a) : base(a)
{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: extra whitespace

[Fact]
public void DeclaringType_ReturnsCustomType()
{
Assert.Equal(ProjectionConstants.CustomType, _field.DeclaringType.FullName);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is one of the tests that is failing. It looks like DeclaringType is SecondTestObject.

Did this succeed for you (locally)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've got myself setup again, and this is failing. For whatever reason, when i initially PR'd this i thought it was passing. I'll button up the failures.

@JosieBigler
JosieBigler marked this pull request as ready for review November 16, 2022 02:17
@JosieBigler

Copy link
Copy Markdown
Contributor Author

@steveharter I remember now, I had trouble hitting the ProjectionFieldInfo API. The Tests that I did do are in the PR. These tests move the code coverage to just under 50%?

using System.Reflection.Context.Custom;
using System.Reflection.Context.Projection;
using System.Reflection.Context.Virtual;
using System.Runtime.CompilerServices;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think you need this extra using.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Removed!

@steveharter steveharter left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

@steveharter

Copy link
Copy Markdown
Contributor

Mono tests failing not related:

Signing /tmp/helix/working/B95D0A64/w/A726092D/e/System.Runtime.Tests.app
    "/Users/helix-runner/Library/Keychains/signing-certs.keychain-db"
     0 valid identities found
No valid signing identities found in the keychain

@steveharter
steveharter merged commit cb0c7ea into dotnet:main Dec 9, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Jan 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Reflection community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants