forked from CocoaPods-Fonts/Inconsolata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInconsolataTests.m
30 lines (23 loc) · 919 Bytes
/
InconsolataTests.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
//
// UIFontInconsolata.m
//
//
#import <UIKit/UIKit.h>
#import <XCTest/XCTest.h>
#import "UIFont+Inconsolata.h"
@interface Tests : XCTestCase
@end
@implementation Tests
- (void)testInconsolataFont {
UIFont *font = [UIFont inconsolataFontOfSize:17.0];
XCTAssertNotNil(font, @"The font was nil.");
XCTAssertEqualObjects(font.fontName, @"Inconsolata-Regular", @"The font method is not returning the correct font.");
XCTAssertEqual(font.pointSize, 17.0, "The font method returned a font with the incorrect point size.");
}
- (void)testInconsolataBoldFont {
UIFont *font = [UIFont inconsolataBoldFontOfSize:17.0];
XCTAssertNotNil(font, @"The font was nil.");
XCTAssertEqualObjects(font.fontName, @"Inconsolata-Bold", @"The font method is not returning the correct font.");
XCTAssertEqual(font.pointSize, 17.0, "The font method returned a font with the incorrect point size.");
}
@end