|
@@ -205,4 +205,20 @@
|
205
|
205
|
// XCTAssertThrows([self.uut viewWillAppear:false]);
|
206
|
206
|
}
|
207
|
207
|
|
|
208
|
+-(void)testTopBarNoBorderOn {
|
|
209
|
+ NSNumber* topBarNoBorderInput = @(1);
|
|
210
|
+ self.options.topBarNoBorder = topBarNoBorderInput;
|
|
211
|
+ __unused UINavigationController* nav = [[UINavigationController alloc] initWithRootViewController:self.uut];
|
|
212
|
+ [self.uut viewWillAppear:false];
|
|
213
|
+ XCTAssertNotNil(self.uut.navigationController.navigationBar.shadowImage);
|
|
214
|
+}
|
|
215
|
+
|
|
216
|
+-(void)testTopBarNoBorderOff {
|
|
217
|
+ NSNumber* topBarNoBorderInput = @(0);
|
|
218
|
+ self.options.topBarNoBorder = topBarNoBorderInput;
|
|
219
|
+ __unused UINavigationController* nav = [[UINavigationController alloc] initWithRootViewController:self.uut];
|
|
220
|
+ [self.uut viewWillAppear:false];
|
|
221
|
+ XCTAssertNil(self.uut.navigationController.navigationBar.shadowImage);
|
|
222
|
+}
|
|
223
|
+
|
208
|
224
|
@end
|