dotnet / dotnet/macios

[Introspection] Introspection tests should check the enum values when possible.

Open
#15,453 0 comments 0 reactions 0 assignees View on GitHub
enhancement tests
Dominant language
C#
Stars
2.9k
Forks
576
Avg merge
2d 12h
Merged PRs (30d)
123

Description

Following issue https://github.com/xamarin/xamarin-macios/issues/15445 we found out that the reason for the bug was a developer doing the bind wrongly and re-ordering the enum in alphabetical order. This might have been done in several places, meaning that we have more than one enum wrong.

Introspection should be able to catch this type of issues.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the introspection tests and reviewing issue 15445 for the enum-binding failure that motivated this request. Determine how enum values are currently represented and checked, then define a testable approach that catches incorrectly reordered enum values wherever possible.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
testing-qa
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.