12345678910111213141516171819202122232425262728293031323334 |
- #import <XCTest/XCTest.h>
- #import "RNNTabBarController.h"
- #import "RNNNavigationOptions.h"
- #import "RNNViewControllerPresenter.h"
-
- @interface RNNTabBarControllerTest : XCTestCase
-
- @property (nonatomic, strong) RNNTabBarController *uut;
-
- @end
-
- @implementation RNNTabBarControllerTest
-
- - (void)setUp {
- [super setUp];
-
- self.uut = [[RNNTabBarController alloc] initWithLayoutInfo:nil childViewControllers:@[[[UIViewController alloc] init]] options:[[RNNNavigationOptions alloc] initWithDict:@{}] presenter:[[RNNViewControllerPresenter alloc] init]];
- }
-
- - (void)testInitWithLayoutInfo_shouldBindPresenter {
- XCTAssertNotNil(self.uut.presenter);
- }
-
- - (void)testInitWithLayoutInfo_shouldSetMultipleViewControllers {
- UIViewController* vc1 = [[UIViewController alloc] init];
- UIViewController* vc2 = [[UIViewController alloc] init];
-
- self.uut = [[RNNTabBarController alloc] initWithLayoutInfo:nil childViewControllers:@[vc1, vc2] options:[[RNNNavigationOptions alloc] initWithDict:@{}] presenter:[[RNNViewControllerPresenter alloc] init]];
- XCTAssertTrue(self.uut.viewControllers.count == 2);
- }
-
-
- @end
|