Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[monotouch-test] Update QuantityTypeIdentifier.EnumValues_22351 after recent API additions. Fixes #16443. #16498

Merged
merged 4 commits into from
Oct 28, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions tests/common/TestRuntime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,23 @@ public static bool CheckExactXcodeVersion (int major, int minor, int beta = 0)
public static bool CheckXcodeVersion (int major, int minor, int build = 0)
{
switch (major) {
case 14:
switch (minor) {
case 1:
#if __WATCHOS__
return CheckWatchOSSystemVersion (9, 1);
#elif __TVOS__
return ChecktvOSSystemVersion (16, 1);
#elif __IOS__
return CheckiOSSystemVersion (16, 1);
#elif MONOMAC
return CheckMacSystemVersion (13, 0);
#else
throw new NotImplementedException ($"Missing platform case for Xcode {major}.{minor}");
#endif
default:
throw new NotImplementedException ($"Missing version logic for checking for Xcode {major}.{minor}");
}
case 14:
switch (minor) {
case 0:
Expand Down
6 changes: 6 additions & 0 deletions tests/monotouch-test/HealthKit/QuantityTypeIdentifierTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ public void EnumValues_22351 ()
if (!TestRuntime.CheckXcodeVersion (14, 0))
continue;
break;
case HKQuantityTypeIdentifier.IrregularMenstrualCycles:
case HKQuantityTypeIdentifier.PersistentIntermenstrualBleeding:
case HKQuantityTypeIdentifier.ProlongedMenstrualPeriods:
if (!TestRuntime.CheckXcodeVersion (14, 1))
continue;
break;
}

try {
Expand Down