BoltsTests/AppLinkTests.m [452:484]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    [self waitForTaskOnMainThread:task];

    BFAppLink *link = task.result;
    XCTAssertEqual((NSUInteger)2, link.targets.count);

    BFAppLinkTarget *target = link.targets[0];
    // Platform-specific links should be prioritized
    switch (UI_USER_INTERFACE_IDIOM()) {
        case UIUserInterfaceIdiomPhone:
            XCTAssertEqualObjects(@"bolts2://iphone", target.URL.absoluteString);
            break;
        case UIUserInterfaceIdiomPad:
            XCTAssertEqualObjects(@"bolts2://ipad", target.URL.absoluteString);
            break;
#ifdef __TVOS_9_0
        case UIUserInterfaceIdiomTV:
#endif
#ifdef __IPHONE_9_3
        case UIUserInterfaceIdiomCarPlay:
#endif
        case UIUserInterfaceIdiomUnspecified:
        default:
            break;
    }
    XCTAssertEqualObjects(@"Bolts2", target.appName);
    XCTAssertEqualObjects(@"67890", target.appStoreId);

    target = link.targets[1];
    XCTAssertEqualObjects(@"bolts://", target.URL.absoluteString);
    XCTAssertEqualObjects(@"Bolts", target.appName);
    XCTAssertEqualObjects(@"12345", target.appStoreId);

    XCTAssertEqualObjects(url, link.webURL);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



BoltsTests/AppLinkTests.m [724:756]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    [self waitForTaskOnMainThread:task];

    BFAppLink *link = task.result;
    XCTAssertEqual((NSUInteger)2, link.targets.count);

    BFAppLinkTarget *target = link.targets[0];
    // Platform-specific links should be prioritized
    switch (UI_USER_INTERFACE_IDIOM()) {
        case UIUserInterfaceIdiomPhone:
            XCTAssertEqualObjects(@"bolts2://iphone", target.URL.absoluteString);
            break;
        case UIUserInterfaceIdiomPad:
            XCTAssertEqualObjects(@"bolts2://ipad", target.URL.absoluteString);
            break;
#ifdef __TVOS_9_0
        case UIUserInterfaceIdiomTV:
#endif
#ifdef __IPHONE_9_3
        case UIUserInterfaceIdiomCarPlay:
#endif
        case UIUserInterfaceIdiomUnspecified:
        default:
            break;
    }
    XCTAssertEqualObjects(@"Bolts2", target.appName);
    XCTAssertEqualObjects(@"67890", target.appStoreId);

    target = link.targets[1];
    XCTAssertEqualObjects(@"bolts://", target.URL.absoluteString);
    XCTAssertEqualObjects(@"Bolts", target.appName);
    XCTAssertEqualObjects(@"12345", target.appStoreId);

    XCTAssertEqualObjects(url, link.webURL);
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



