xamarin-macios/tests/monotouch-test/Foundation
Rolf Bjarne Kvinge 839f586344
[monotouch-test] Fix broken UrlRequestTest.Mutability_30744 test. (#9096)
* [monotouch-test] Fix broken UrlRequestTest.Mutability_30744 test.

This test is supposed to assert that setting a header on an immutable
dictionary throws an exception.

The problem is that the tested code always throws an exception: either when
setting the header, or when asserting right after because no exception was
thrown, effectively always passing.

This showed up with current versions of NUnit[Lite], which keeps track of
assertion failures, and fails a test even if those assertion
failures/exceptions are caught in exception handlers.

So remove the whole exception verification logic, and just try to set the
value. We'll see if the test start failing somewhere (I've already tested both
on device and simulator, and no problems found so far).

* Remove a simulator condition.

It works on device for me (iPhone 7 with iOS 11.4.1)... maybe Apple changed
something?
2020-07-16 08:20:09 +02:00
..
ArrayTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
AttributedStringTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
BlockOperationTest.cs [tests] Use Assert.Throws instead of the ExpectedException attribute. (#9092) 2020-07-16 08:19:33 +02:00
BundleTest.cs [tests] Use Assert.Throws instead of the ExpectedException attribute. (#9092) 2020-07-16 08:19:33 +02:00
CachedUrlResponseTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
CalendarTest.cs [tests] Remove some Classic code. (#8592) 2020-05-14 09:36:21 +02:00
CoderTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
CookieTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
DateFormatterTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
DateTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
DecimalNumberTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
DecimalTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
DictionaryContainerTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
DimensionTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
EncodingDetectionOptionsTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
FileCoordinatorTest.cs [tests] Use Assert.Throws instead of the ExpectedException attribute. (#9092) 2020-07-16 08:19:33 +02:00
FileHandleTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
FileManagerTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
FormatterTests.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
IndexPathTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
KeyedUnarchiverTest.cs [tests] Remove some Classic code. (#8592) 2020-05-14 09:36:21 +02:00
LocaleTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
MutableAttributedStringTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
MutableDataTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
MutableStringTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSArray1Test.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSCharacterSetTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSDataTest.cs [tests] Skip a few networking tests on macOS 10.9. Fixes #xamarin/maccore@2221. (#9012) 2020-07-06 13:26:09 +02:00
NSDateComponentsTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSDictionary2Test.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSDictionaryTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSExpressionTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSInputStreamTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSKeyedUnarchiverTest.cs [ObjCRuntime] Add missing .ctor to 'Class' (#4726) 2018-08-29 16:23:36 -04:00
NSLayoutConstraintTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSLinguisticAnalysisTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSLocaleTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSMutableArray1Test.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSMutableDictionary2Test.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSMutableDictionaryTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSMutableOrderedSet1Test.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSMutableOrderedSetTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSMutableSet1Test.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSMutableSetTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSOrderedSet1Test.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSOrderedSetTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSSet1Test.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSSetTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSStreamTest.cs [monotouch-test] Fix debug naming. (#9084) 2020-07-15 09:05:34 +02:00
NSStringTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSTimeZoneTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NSUrlSessionConfiguration.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NetServiceTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NotificationCenter.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NotificationQueueTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
NumberTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
ObjectTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
OperationQueueTest.cs [tests] Use Assert.Throws instead of the ExpectedException attribute. (#9092) 2020-07-16 08:19:33 +02:00
OutputStreamTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
ProtocolAttributeTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
RegularExpressionTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
StringTest.cs [tests] Use Assert.Throws instead of the ExpectedException attribute. (#9092) 2020-07-16 08:19:33 +02:00
ThreadTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
TimerTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
UbiquitousKeyValueStoreTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
UrlConnectionTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
UrlCredentialTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
UrlProtectionSpaceTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
UrlProtocolTest.cs [tests] Skip a few networking tests on macOS 10.9. Fixes #xamarin/maccore@2221. (#9012) 2020-07-06 13:26:09 +02:00
UrlRequestTest.cs [monotouch-test] Fix broken UrlRequestTest.Mutability_30744 test. (#9096) 2020-07-16 08:20:09 +02:00
UrlSessionConfigurationTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
UrlSessionTaskMetricsTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
UrlSessionTaskTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
UrlSessionTaskTransactionMetricsTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
UrlSessionTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
UrlTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
UserDefaultsTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
UuidTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
ZoneTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00