forked from nytimes/NYTPhotoViewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NYTPhotoCaptionViewTests.m
32 lines (23 loc) · 1.04 KB
/
NYTPhotoCaptionViewTests.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//
// NYTPhotoCaptionViewTests.m
// NYTPhotoViewer
//
// Created by Brian Capps on 2/24/15.
// Copyright (c) 2015 NYTimes. All rights reserved.
//
@import UIKit;
@import XCTest;
#import <NYTPhotoViewer/NYTPhotoCaptionView.h>
@interface NYTPhotoCaptionViewTests : XCTestCase
@end
@implementation NYTPhotoCaptionViewTests
- (void)testDesignatedInitializerAcceptsNilForTitle {
XCTAssertNoThrow([[NYTPhotoCaptionView alloc] initWithAttributedTitle:nil attributedSummary:[[NSAttributedString alloc] init] attributedCredit:[[NSAttributedString alloc] init]]);
}
- (void)testDesignatedInitializerAcceptsNilForSummary {
XCTAssertNoThrow([[NYTPhotoCaptionView alloc] initWithAttributedTitle:[[NSAttributedString alloc] init] attributedSummary:nil attributedCredit:[[NSAttributedString alloc] init]]);
}
- (void)testDesignatedInitializerAcceptsNilForCredit {
XCTAssertNoThrow([[NYTPhotoCaptionView alloc] initWithAttributedTitle:[[NSAttributedString alloc] init] attributedSummary:[[NSAttributedString alloc] init] attributedCredit:nil]);
}
@end