[Tests] Add failing tests for weird conformance issue

This commit is contained in:
Adlai Holler
2016-07-14 11:06:22 -07:00
parent 3591f7a7c1
commit 65e194c7c6
2 changed files with 22 additions and 0 deletions

View File

@@ -13,6 +13,7 @@
#import "ASCollectionDataController.h"
#import "ASCollectionViewFlowLayoutInspector.h"
#import "ASCellNode.h"
#import "ASCollectionNode.h"
@interface ASTextCellNodeWithSetSelectedCounter : ASTextCellNode
@@ -240,4 +241,14 @@
XCTAssertTrue(ASRangeTuningParametersEqualToRangeTuningParameters(preloadParams, [collectionView tuningParametersForRangeType:ASLayoutRangeTypeFetchData]));
}
/**
* This may seem silly, but we had issues where the runtime sometimes wouldn't correctly report
* conformances declared on categories.
*/
- (void)testThatCollectionNodeConformsToExpectedProtocols
{
ASCollectionNode *node = [[ASCollectionNode alloc] initWithFrame:CGRectZero collectionViewLayout:[[UICollectionViewFlowLayout alloc] init]];
XCTAssert([node conformsToProtocol:@protocol(ASRangeControllerUpdateRangeProtocol)]);
}
@end