/* * This file is part of the SDWebImage package. * (c) Olivier Poitrey * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ #define EXP_SHORTHAND // required by Expecta #import #import #import "UIImage+MultiFormat.h" @interface UIImageMultiFormatTests : XCTestCase @end @implementation UIImageMultiFormatTests - (void)setUp { [super setUp]; // Put setup code here. This method is called before the invocation of each test method in the class. } - (void)tearDown { // Put teardown code here. This method is called after the invocation of each test method in the class. [super tearDown]; } - (void)testImageOrientationFromImageDataWithInvalidData { // sync download image SEL selector = @selector(sd_imageOrientationFromImageData:); UIImageOrientation orientation = [[UIImage class] performSelector:selector withObject:nil]; expect(orientation).to.equal(UIImageOrientationUp); } @end