xamarin-macios/tests/monotouch-test
Rolf Bjarne Kvinge c8bd5e3cff [Foundation] Set 'sentRequest' when sending a request in NSUrlSessionHandler. (#1806)
* [Foundation] Set 'sentRequest' when sending a request in NSUrlSessionHandler.

Fixes this compiler warning:

> [..]/external/mono/mcs/class/System.Net.Http/HttpClientEx.cs(50,8): warning CS0649: Field `Foundation.NSUrlSessionHandler.sentRequest' is never assigned to, and will always have its default value `false'

However it changes the runtime behavior, and we'll now throw an exception in
cases that we accepted before:

* `sentRequest` is only read in `EnsureModifiability ()`, which throws an
  exception if `sentRequest` is true.
* Previously `sentRequest` was never set (thus the compiler warning), which
  meant `EnsureModifiability` would never throw an exception.
* Looking at the similar `CFNetworkHandler` (which has the identical field and
  methods), it seems that the intended behavior is to set `sentRequest` in
  `SendAsync`, and then `EnsureModifiability` is called whenever a property is
  set to ensure the property isn't set too late (and any change would be
  ignored because the request was already sent).
* This means that previously setting any property after the request was sent
  would not throw any exceptions (even though the change would be ignored),
  while with this change we'd start throwing exceptions.

* Add missing tests for the setRequest var.

* Redesign tests to make sure that all handlers run the same code.

* Fix failing test.

* Add the managed handler to the HttpClient tests.

* Fix minor style issues.
2017-06-05 09:21:28 -04:00
..
AVFoundation Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
AVKit [tests] Import 2016-05-26 15:06:52 +02:00
AdSupport [tests] Import 2016-05-26 15:06:52 +02:00
AddressBook [tests] Import 2016-05-26 15:06:52 +02:00
AddressBookUI [tests][monotouch] More adjustments for iOS10 related failures/changes (#239) 2016-06-22 16:28:27 -04:00
Assets.xcassets/AppIcons.appiconset [tests] Import 2016-05-26 15:06:52 +02:00
AudioToolbox [monotouch-test] Fix SystemSoundTest.FromFile's audio file to not take 23s. Fixes #54236. (#1942) 2017-03-30 14:33:36 +02:00
AudioUnit [generator] Allow basic support of nullable inside our trampolines. Fixes #42699 (#1820) 2017-03-03 14:01:33 -05:00
CloudKit [tests] Update monotouch-test to add version checks when executing on older iOS versions. Fixes #43920 (#729) 2016-08-31 23:08:54 -04:00
Contacts [XM] Add hybrid/standard AOT option and improve AOT code (#1650) 2017-02-08 13:40:48 -06:00
CoreAnimation Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
CoreAudioKit [tests] Add missing version check on AUViewController tests. Fixes #42440 (#393) 2016-07-13 23:10:35 -04:00
CoreBluetooth Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
CoreData [tests] Import 2016-05-26 15:06:52 +02:00
CoreFoundation [tests] Use a different bundle id for different apps that can be installed on the same device. (#1509) 2017-01-16 18:34:57 +01:00
CoreGraphics [coregraphics] Add CGRect.Null and Infinite properties. Fixes #43628 (#1819) 2017-03-03 09:04:32 -05:00
CoreImage [tests] Generalize CIImage test wrt colorspace. Fixes #51493 (#1496) 2017-01-13 13:05:32 -05:00
CoreLocation Merge remote-tracking branch 'origin/master' into xcode8 2016-06-28 12:44:08 +02:00
CoreMedia Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
CoreMidi [Midi] Fix bug 43582 - MidiEndpoint throws, bad dispose of GCHandle 2016-08-31 08:48:11 -04:00
CoreMotion [tests] Import 2016-05-26 15:06:52 +02:00
CoreServices Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
CoreText [CoreText] CTParagraphStyle uses the incorrect float return type. Fixes bug 54148. (#1975) 2017-04-10 08:24:25 +02:00
CoreVideo [generator] Create CVPixelBuffer using GetINativeObject so its usable from 3rd party bindings (#2111) 2017-05-19 11:10:22 -05:00
EventKit Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
ExternalAccessory [tests] Import 2016-05-26 15:06:52 +02:00
Foundation [tests] Don't cap return value to 32-bit on 64-bit platforms in NSArrayTest.Sort. Fixes #53298. (#2149) 2017-05-31 17:33:00 +02:00
GLKit [runtime] Parse unions in objc encodings correctly. Fixes #42452. (#394) 2016-07-14 18:03:02 +02:00
GameController Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
GameKit Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
GameplayKit [GameplayKit] Update from Xcode8 Beta 1 to Beta 6 (#689) 2016-08-30 15:32:46 -04:00
HealthKit [healthkit] Update for iOS 10 GM (#800) 2016-09-07 18:19:19 -04:00
HttpClient [Foundation] Set 'sentRequest' when sending a request in NSUrlSessionHandler. (#1806) 2017-06-05 09:21:28 -04:00
ImageIO Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
Intents [tests] Disable INIntentResolutionResultTests.cs on XM (it's not ready) 2017-03-28 16:31:49 -05:00
JavascriptCore Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
MapKit Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
MediaAccessibility Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
MediaPlayer [mediaplayer] Update for iOS 10.3 beta 1 (#1627) 2017-03-28 09:24:06 -05:00
MediaToolbox Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
MessageUI [messageui] Review (and add test) the enum breaking change from Apple. Fixes #42682 (#710) 2016-08-30 14:26:49 -04:00
Messages Fix monotouch-tests failures on older iOS versions (#401) 2016-07-14 22:00:52 -04:00
Metal [metal] Fix MTLHeapDescriptor and test it only on devices (#782) 2016-09-07 08:03:14 -04:00
MetalPerformanceShaders Fix monotouch-tests failures on older iOS versions (#401) 2016-07-14 22:00:52 -04:00
MobileCoreServices Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
ModelIO [tests][monotouch] Stop guessing values for CreateCylinder 2017-03-28 18:15:02 -05:00
MultipeerConnectivity Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
NetworkExtension Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
ObjCRuntime [registrar] Support 'out' parameters from NULL pointers. Fixes #54919. (#2106) 2017-05-19 12:07:12 +02:00
OpenGLES [opengles] Add version check to EAGLContext.PresentRenderBufferTest (#1706) 2017-03-28 09:42:24 -05:00
PassKit [passkit] API audit: remove default .ctor on PKLabeledValue, add tests for PKLabeledValue and add xtro comments (#979) 2016-10-12 11:30:11 +02:00
Photos [tests] Import 2016-05-26 15:06:52 +02:00
PushKit [tests] Import 2016-05-26 15:06:52 +02:00
QuickLook [tests][monotouch] More adjustments for iOS10 related failures/changes (#239) 2016-06-22 16:28:27 -04:00
Resources [tests] Import 2016-05-26 15:06:52 +02:00
SafariServices [tests] Import 2016-05-26 15:06:52 +02:00
SceneKit Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
Security [tests][security] Re-enable some tests inside KeyTest. Fix #51277 (#2103) 2017-05-17 21:59:35 -04:00
SpriteKit Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
StoreKit [tests] Import 2016-05-26 15:06:52 +02:00
System.Net.Http Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
SystemConfiguration Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
UIKit [uikit] Add == and != operators on UIEdgeInsets. Fixes #33504 (#1773) 2017-02-27 08:50:31 -05:00
VideoToolbox [VideoToolbox] Updated to Xcode 8.3 Beta 1 2017-03-28 09:29:36 -05:00
iAd [tests] Import 2016-05-26 15:06:52 +02:00
mono Port monotouch-test suite to Xamarin.Mac (#1445) 2017-01-12 09:13:56 -09:00
AppDelegate.cs [tests] Import 2016-05-26 15:06:52 +02:00
Asserts.cs [modelio] Update for iOS 10 beta 1 (#606) 2016-08-19 13:55:59 -04:00
BoardingPass.pkpass [tests] Import 2016-05-26 15:06:52 +02:00
EmptyNib.xib [tests] Import 2016-05-26 15:06:52 +02:00
Entitlements.plist [tests] Import 2016-05-26 15:06:52 +02:00
Hand.wav [tests] Import 2016-05-26 15:06:52 +02:00
Info.plist [tests] Remove Classic test projects, and make the Unified test projects the master projects. (#858) 2016-09-21 22:55:10 +02:00
LL-171A-B-B797E457-16AB-C708-1E0F-32C19DBD47B5.icc [tests] Import 2016-05-26 15:06:52 +02:00
LaunchScreen.storyboard [tests] Import 2016-05-26 15:06:52 +02:00
Main.cs [monotouch-test] Move version-checking code to a shared file. 2016-06-27 13:07:37 +02:00
Makefile [tests] Import 2016-05-26 15:06:52 +02:00
NativeTypesTest.cs [tests] Import 2016-05-26 15:06:52 +02:00
Pacifico.ttf [tests] Import 2016-05-26 15:06:52 +02:00
Tamarin.pdf [tests] Import 2016-05-26 15:06:52 +02:00
app.config [monotouch-test] Add test to ensure config files are properly bundled in apps. (#1291) 2016-12-02 14:13:25 +01:00
basn3p08.png [tests] Import 2016-05-26 15:06:52 +02:00
drum01.mp3 [tests] Import 2016-05-26 15:06:52 +02:00
monotouch-test.csproj [Foundation] Set 'sentRequest' when sending a request in NSUrlSessionHandler. (#1806) 2017-06-05 09:21:28 -04:00
xamvideotest.mp4 [tests] Import 2016-05-26 15:06:52 +02:00