JSQMessagesViewController/JSQMessagesTests/ViewTests/JSQMessagesLabelTests.m
2014-10-15 21:16:47 -07:00

40 lines
736 B
Objective-C

//
// Created by Jesse Squires
// http://www.jessesquires.com
//
//
// MIT License
// Copyright (c) 2014 Jesse Squires
// http://opensource.org/licenses/MIT
//
#import <XCTest/XCTest.h>
#import "JSQMessagesLabel.h"
@interface JSQMessagesLabelTests : XCTestCase
@end
@implementation JSQMessagesLabelTests
- (void)setUp
{
[super setUp];
}
- (void)tearDown
{
[super tearDown];
}
- (void)testMessagesLabelInit
{
JSQMessagesLabel *label = [[JSQMessagesLabel alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 200.0f, 40.0f)];
XCTAssertNotNil(label, @"Label should not be nil");
XCTAssertTrue(UIEdgeInsetsEqualToEdgeInsets(label.textInsets, UIEdgeInsetsZero), @"Property should be equal to default value");
}
@end