ThatArePublicOrInternal
property in PropertyInfoSelector.cs
selects only the properties with get accessor
#2062
Labels
Description
ThatArePublicOrInternal
property inPropertyInfoSelector.cs
only selects the public or internal properties that have get accessorComplete minimal example reproducing the issue
When selecting the public or internal properties of a type, it selects only the ones with get accessors. If a property has only set accessor it will not be selected.
E.g.
Expected behavior:
The test should pass because one property is internal and the other one is public and both should be selected
Actual behavior:
The test fails with following message:
Expected properties to contain 2 item(s), but found 1: {InternalStaticStringProperty}.
Additional Information
Using Visual Studio 2022
The text was updated successfully, but these errors were encountered: