xamarin-macios/tests/monotouch-test/CoreBluetooth
Rolf Bjarne Kvinge d53a2336ad
[monotouch-test] Rework CBCentralManagerTest to handle not having permissions. (#9661)
1. Assert that we got permission to CoreBluetooth before doing anything. This
   makes it so that if permission has been denied, or if we're running on the
   bots and permission has not been granted, these tests won't run. It does
   not affect local test runs where permissions haven't been granted nor
   denied.

2. Rework the code to wait for CoreBluetooth to power on in the SetUp method.
   Mark the test as inconclusive if CoreBluetooth never powers on (this
   happens if nobody answers the bluetooth permission dialog, quite typical
   when running tests locally).

Fixes these tests when running locally on a tvOS device:

    MonoTouchFixtures.CoreBluetooth.CBCentralManagerTest
        [FAIL] Constructors
        [FAIL] ScanForPeripherals
2020-09-18 09:07:31 +02:00
..
CentralManagerTest.cs [monotouch-test] Rework CBCentralManagerTest to handle not having permissions. (#9661) 2020-09-18 09:07:31 +02:00
ErrorTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
PeerTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00
PeripheralScanningOptionsTest.cs [tests] Update tests to make native type vs normal type comparison explicit (#9097) 2020-07-17 08:48:09 +02:00
UuidTest.cs [tests] Remove Classic code from all tests. (#8702) 2020-05-28 16:35:09 +02:00