Add assertion against externally setting .image in specific ASImageNode subclasses

This commit is contained in:
Michael Schneider
2016-12-04 07:15:28 -08:00
parent 42c7bb291e
commit 9adb6554fc
8 changed files with 75 additions and 16 deletions

View File

@@ -71,6 +71,12 @@
[downloader verifyWithDelay:5];
}
- (void)testThatSettingAnImageExternallyWillThrow
{
ASNetworkImageNode *networkImageNode = [[ASNetworkImageNode alloc] init];
XCTAssertThrows(networkImageNode.image = [UIImage imageNamed:@""]);
}
@end
@implementation ASTestImageCache