     var interactor: NewsListInteractorInputProtocol?
     var wireFrame: NewsListWireFrameProtocol?
     
-    var newsFeedResult: NewsListInteractor.NewsFeedResult?
+    var isSuccess: Bool?
     
     func didRequestNewsFeedData() {
         

    }
    
    func didReceiveNewsFeedResult(newsFeedResult: NewsListInteractor.NewsFeedResult) {
        self.newsFeedResult = newsFeedResult
    }
    
}

        super.tearDown()
    }
    
    func testGetNewsFeed() {
        interactor.apiDataManager?.getNewsFeed(with: { newsFeedResult in
            XCTAssertNotNil(newsFeedResult, "NewsFeedResult should not be nil.")
        })
    }
    
    func testPerformNewsFeedTaskSuccess() {
        let successResult = NewsListInteractor.NewsFeedResult.success([News]())
        self.interactor.presenter?.didReceiveNewsFeedResult(newsFeedResult: successResult)
        XCTAssertTrue(self.mockPresenter.isSuccess ?? false, "NewsFeedResult should be successful case.")
    }
    
    func testPerformNewsFeedTaskFail() {
        let failResult = NewsListInteractor.NewsFeedResult.error("Dummy error")
        self.interactor.presenter?.didReceiveNewsFeedResult(newsFeedResult: failResult)
        XCTAssertFalse(self.mockPresenter.isSuccess ?? true, "NewsFeedResult should be failure case.")
    }
    
}
