1234567891011121314151617181920212223242526272829 |
- #import <XCTest/XCTest.h>
- #import "SideMenuOpenGestureModeParser.h"
- #import "RCTConvert+SideMenuOpenGestureMode.h"
-
- @interface RNNSideMenuParserTest : XCTestCase
-
- @end
-
- @implementation RNNSideMenuParserTest
-
- - (void)setUp {
- [super setUp];
- }
-
- - (void)testParseBezelOpenModeReturnDrawerGestureModeBezel {
- NSDictionary* dict = @{@"openMode": @"bezel"};
- SideMenuOpenMode* openMode = [SideMenuOpenGestureModeParser parse:dict key:@"openMode"];
- XCTAssertEqual(openMode.get.integerValue, MMOpenDrawerGestureModeBezelPanningCenterView);
- }
-
- - (void)testParseEntireScreenOpenModeReturnDrawerGestureModeAll {
- NSDictionary* dict = @{@"openMode": @"entireScreen"};
- SideMenuOpenMode* openMode = [SideMenuOpenGestureModeParser parse:dict key:@"openMode"];
- XCTAssertEqual(openMode.get.integerValue, MMOpenDrawerGestureModeAll);
- }
-
-
- @end
|