react-native-navigation的迁移库

UIViewController+LayoutProtocolTest.m 494B

12345678910111213141516171819202122
  1. #import <XCTest/XCTest.h>
  2. #import <OCMock/OCMock.h>
  3. #import "UIViewController+LayoutProtocol.h"
  4. @interface UIViewController_LayoutProtocolTest : XCTestCase
  5. @property (nonatomic, retain) UIViewController* uut;
  6. @end
  7. @implementation UIViewController_LayoutProtocolTest
  8. - (void)setUp {
  9. [super setUp];
  10. self.uut = [OCMockObject partialMockForObject:[UIViewController new]];
  11. self.uut.layoutInfo = [[RNNLayoutInfo alloc] init];
  12. self.uut.layoutInfo.componentId = @"componentId";
  13. }
  14. @end