xamarin-macios/tests/monotouch-test/Foundation
Rolf Bjarne Kvinge 06426bd7a0
[Foundation] Improve/fix NSRegularExpression and NSDataDetector bindings. Fixes #5881. (#5882)
* NSDataDetector

    * Add constructor found in header. No idea where the commented-out
      constructor came from, it's not in the header, so I removed it.
    * Add overloads that take NSTextCheckingType in addition to
      NSTextCheckingTypes. Apple's API take NSTextCheckingTypes, but all the
      documentation and samples say that you're supposed to pass one or more
      or'ed NSTextCheckingType values, so support that as well without casting
      between enums.

* NSRegularExpression

    * GetMatches had the wrong return type, so add a GetMatches2 that does it
      right. Also add a test to make sure it's really right.
    * Bind 'regularExpressionWithPattern:options:error:' with a static method.
      There's a corresponding constructor, but constructors returning out
      NSError parameters isn't the nicest API (when the NSError is important),
      so add the static method as well.
    * Add a missing [NullAllowed] on FindFirstMatch's return value.

* NSRegularExpressionOptions

    * Add missing enum value.

Fixes https://github.com/xamarin/xamarin-macios/issues/5881.
2019-04-10 15:12:24 +02:00
..
ArrayTest.cs [foundation] Avoid unnecessary native calls for NSNull.Null. Fixes #3544 (#3984) 2018-04-26 09:24:46 -04:00
AttributedStringTest.cs [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
BlockOperationTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
BundleTest.cs [foundation] Add NSBundle.GetLocalizedString returning an NSString. Fixes #41292 (#3266) 2018-01-20 14:00:01 -05:00
CachedUrlResponseTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
CalendarTest.cs [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
CoderTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
CookieTest.cs [monotouch-test] Fix versions checks. 2018-07-03 20:47:14 +02:00
DateFormatterTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
DateTest.cs [foundation] Fix DateTime from NSDate seconds (decimal) precision loss when converting. Fix #32022 (#2916) 2017-10-24 10:54:17 -04:00
DecimalNumberTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
DecimalTest.cs [tests] Check versions using Xcode version instead of platform version. 2016-06-27 13:07:37 +02:00
DictionaryContainerTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
DimensionTest.cs Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
EncodingDetectionOptionsTest.cs [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
FileCoordinatorTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
FileHandleTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
FileManagerTest.cs Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
FormatterTests.cs [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
IndexPathTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
KeyedUnarchiverTest.cs Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
LocaleTest.cs Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
MutableAttributedStringTest.cs Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
MutableDataTest.cs Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
MutableStringTest.cs Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
NSArray1Test.cs [tests] Import 2016-05-26 15:06:52 +02:00
NSCharacterSetTest.cs Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
NSDataTest.cs Merge branch 'd15-8' into xcode10-rebase-15.8 2018-08-13 21:04:56 -04:00
NSDateComponentsTest.cs [Foundation] Add not bound NSDateComponentUndefined. Fixes 60740 (#3471) 2018-02-13 20:38:24 +01:00
NSDictionary2Test.cs [NS(mutable)Dictionary] Fix bug 41343 - NSDictionary<TKey, TValue>.FromObjectsAndKeys keys and values are twisted up (#281) 2016-06-27 20:38:14 -04:00
NSDictionaryTest.cs [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
NSExpressionTest.cs [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
NSInputStreamTest.cs [test] Change monotouch-test and xammac_tests to use all .cs files in monotouch-test/ Fixes #60290 (#2930) 2017-10-31 08:09:21 -08:00
NSKeyedUnarchiverTest.cs [ObjCRuntime] Add missing .ctor to 'Class' (#4726) 2018-08-29 16:23:36 -04:00
NSLayoutConstraintTest.cs [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
NSLinguisticAnalysisTest.cs [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
NSLocaleTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
NSMutableArray1Test.cs [tests] Import 2016-05-26 15:06:52 +02:00
NSMutableDictionary2Test.cs Merge branch 'xcode10' 2018-09-18 14:12:39 -04:00
NSMutableDictionaryTest.cs [Foundation] Bind NSMutableDictionary's addEntriesFromDictionary:. Fixes #4813. (#4819) 2018-09-17 16:14:46 +02:00
NSMutableOrderedSet1Test.cs [tests] Import 2016-05-26 15:06:52 +02:00
NSMutableOrderedSetTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
NSMutableSet1Test.cs [tests] Import 2016-05-26 15:06:52 +02:00
NSMutableSetTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
NSOrderedSet1Test.cs [tests] Import 2016-05-26 15:06:52 +02:00
NSOrderedSetTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
NSSet1Test.cs [tests] Import 2016-05-26 15:06:52 +02:00
NSSetTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
NSStreamTest.cs [monotouch-test] Disable test that uses TcpListener, since TcpListener doesn't work on watchOS. 2016-06-27 13:07:37 +02:00
NSStringTest.cs [NSString] Add overloads which are optimized for substring handling (#5517) 2019-01-31 19:09:13 +02:00
NSTimeZoneTest.cs Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
NetServiceTest.cs Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
NotificationCenter.cs [Foundation] Make adding/removing observers in NSNotificationCenter thread safe. (#5833) 2019-04-03 11:45:11 +02:00
NotificationQueueTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
NumberTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
ObjectTest.cs [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
OperationQueueTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
OutputStreamTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
ProtocolAttributeTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
RegularExpressionTest.cs [Foundation] Improve/fix NSRegularExpression and NSDataDetector bindings. Fixes #5881. (#5882) 2019-04-10 15:12:24 +02:00
StringTest.cs [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
ThreadTest.cs [monotouch-test] Adjust tests according to watchOS behavior. 2016-06-27 13:07:37 +02:00
TimerTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
UbiquitousKeyValueStoreTest.cs [monotouch-test] Don't blindly ignore a test since it's not only run on watchOS. (#2405) 2017-08-02 16:15:35 -04:00
UrlConnectionTest.cs Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
UrlCredentialTest.cs [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
UrlProtectionSpaceTest.cs Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
UrlProtocolTest.cs Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
UrlRequestTest.cs Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
UrlSessionConfigurationTest.cs [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
UrlSessionTaskMetricsTest.cs Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
UrlSessionTaskTest.cs [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
UrlSessionTaskTransactionMetricsTest.cs Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
UrlSessionTest.cs [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
UrlTest.cs [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
UserDefaultsTest.cs [tests] Refactor API to check/assert current OS version. 2018-07-04 12:35:15 +02:00
UuidTest.cs Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
ZoneTest.cs Bump Xcode version to beta 2 (#349) 2016-07-07 13:10:24 -04:00