         XCTAssertNil(delegate.didFinishPagingAt_args)
         XCTAssertNil(self.contentAppearanceHandler.beginDragging_args)
         XCTAssertNil(self.contentAppearanceHandler.stopScrolling_args)
-            
-        XCUIDevice.shared.orientation = .landscapeLeft
+        
+        UIDevice.current.setValue(
+            UIDeviceOrientation.landscapeLeft.rawValue,
+            forKey: "orientation"
+        )
+        let bounds = pagingContentViewController?.view.bounds ?? .zero
+        let transitionCoordinator = UIViewControllerTransitionCoordinatorMock()
+        UIApplication.shared.keyWindow?.rootViewController?
+            .viewWillTransition(
+                to: CGSize(width: bounds.height, height: bounds.width),
+                with: transitionCoordinator
+            )
+        
+        let expectation = XCTKVOExpectation(
+            keyPath: "animate_alongsideTransition_completion_wasCalled",
+            object: transitionCoordinator,
+            expectedValue: true
+        )
+        wait(for: [expectation], timeout: 1)
         
         XCTAssertNil(delegate.willBeginPagingAt_args)
         XCTAssertNil(delegate.willFinishPagingAt_args)
         XCTAssertNil(delegate.didFinishPagingAt_args)
         XCTAssertNil(self.contentAppearanceHandler.beginDragging_args)
-        XCTAssertNil(self.contentAppearanceHandler.stopScrolling_args)
-        expectation.fulfill()
-    
-        wait(for: [expectation], timeout: 1)
+        XCTAssertNil(self.contentAppearanceHandler.stopScrolling_args)    
     }
     
     func test_ScrollingTheSamePage_callingDelegate() {

        postReload_ags = index
    }
}

    }
    
    func test_UpdaingViewControllerSize_notCallApparance() {
        
        let dataSource = PagingContentVcDataSourceSpy()
        let delegate = PagingContentVcDelegateSpy()
        self.pagingContentViewController?.dataSource = dataSource
