forked from cruffenach/CRToast
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create test files for unit test suite
- Loading branch information
dmiedema
committed
Dec 29, 2014
1 parent
2a07b07
commit 2c4f167
Showing
4 changed files
with
146 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// | ||
// CRToastManagerTests.m | ||
// CRToastDemo | ||
// | ||
// Created by Daniel on 12/27/14. | ||
// Copyright (c) 2014 Collin Ruffenach. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
#import <XCTest/XCTest.h> | ||
#import "CRToastManager.h" | ||
#import "CRToast.h" | ||
|
||
@interface CRToastManagerTests : XCTestCase | ||
@end | ||
|
||
@implementation CRToastManagerTests | ||
|
||
- (void)testEmptyDefaultOptions | ||
{ | ||
[CRToastManager setDefaultOptions:@{}]; | ||
} | ||
|
||
|
||
- (void)testPerformanceExample { | ||
// This is an example of a performance test case. | ||
[self measureBlock:^{ | ||
// Put the code you want to measure the time of here. | ||
}]; | ||
} | ||
|
||
#pragma mark - Setup | ||
- (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]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
// | ||
// CRToastViewTests.m | ||
// CRToastDemo | ||
// | ||
// Created by Daniel on 12/27/14. | ||
// Copyright (c) 2014 Collin Ruffenach. All rights reserved. | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
#import <XCTest/XCTest.h> | ||
#import "CRToastView.h" | ||
#import "CRToast.h" | ||
|
||
@interface CRToastViewTests : XCTestCase | ||
|
||
@end | ||
|
||
@implementation CRToastViewTests | ||
|
||
- (void)testExample { | ||
// This is an example of a functional test case. | ||
XCTAssert(YES, @"Pass"); | ||
} | ||
|
||
#pragma mark Image Alignment | ||
- (void)testImageFrameLeftAlignment { | ||
|
||
} | ||
|
||
- (void)testImageFrameCenterAlignment { | ||
|
||
} | ||
|
||
- (void)testImageFrameRightAlignment { | ||
|
||
} | ||
|
||
#pragma mark Activity Indicator Alignment | ||
- (void)testActivityFrameLeftAlignment { | ||
|
||
} | ||
|
||
- (void)testActivityFrameCenterAlignment { | ||
|
||
} | ||
|
||
- (void)testActivityFrameRightAlignment { | ||
|
||
} | ||
|
||
#pragma mark Width Calculations | ||
- (void)testWidthWithOnlyLeftItem { | ||
|
||
} | ||
|
||
- (void)testWidthWithOnlyCenterItem { | ||
|
||
} | ||
|
||
- (void)testWidthWithOnlyRightItem { | ||
|
||
} | ||
|
||
- (void)testWidthWithLeftAndCenter { | ||
|
||
} | ||
|
||
- (void)testWidthWithLeftAndRight { | ||
|
||
} | ||
|
||
|
||
- (void)testPerformanceExample { | ||
// This is an example of a performance test case. | ||
[self measureBlock:^{ | ||
// Put the code you want to measure the time of here. | ||
}]; | ||
} | ||
|
||
#pragma mark - Setup | ||
- (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]; | ||
} | ||
|
||
- (CRToast *)testToast { | ||
return [[CRToast alloc] init]; | ||
} | ||
|
||
@end |