Skip to content

Conversation

@medhatiwari
Copy link
Owner

Fix Mono detection in TestPlatformHelper

Summary

Fixes TestPlatformHelper.IsMono to detect modern Mono runtime (.NET 6+).

Problem

IsMono only checked for Mono.Runtime type, which exists in old Mono but not modern Mono (.NET 6+). This caused tests marked with [FrameworkSkipCondition(RuntimeFrameworks.Mono)] to run on Mono when they should have been skipped.

cc: @giritrivedi

Copy link

@giritrivedi giritrivedi left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants