refactored test

This commit is contained in:
Luke Parham 2015-12-19 00:14:17 -06:00
parent 002b3b3805
commit c69e18bc6e

View File

@ -36,11 +36,12 @@
- (void)testVideoNodeDoesNotReplaceAVPlayerItemWhenSameURLIsSet {
ASVideoNode *videoNode = [[ASVideoNode alloc] init];
videoNode.interfaceState = ASInterfaceStateFetchData;
AVAsset *asset = [AVAsset assetWithURL:[NSURL URLWithString:@"firstURL"]];
videoNode.asset = [AVAsset assetWithURL:[NSURL URLWithString:@"firstURL"]];
videoNode.asset = asset;
AVPlayerItem *item = [videoNode currentItem];
videoNode.asset = [AVAsset assetWithURL:[NSURL URLWithString:@"firstURL"]];
videoNode.asset = asset;
AVPlayerItem *secondItem = [videoNode currentItem];
XCTAssertEqualObjects(item, secondItem);