public void TestCloseBrowserProcessCallsShutdown() { _uiHelper = Substitute.For <IUiHelper>(); _browsersManagerApi = new BrowsersManagerApi(_browserWindowsManager, _uiHelper); _browsersManagerApi.CloseBrowserProcess(); _uiHelper.Received().GracefulShutdown(); }
public void TestCloseBrowserProcessCallsShutdown() { _uiHelper = Substitute.For<IUiHelper>(); _browsersManagerApi = new BrowsersManagerApi(_browserWindowsManager, _uiHelper); _browsersManagerApi.CloseBrowserProcess(); _uiHelper.Received().GracefulShutdown(); }
public void TestNotifyCallsAsync() { InitWithMocks(); _asyncAnalytics.Notify("1", "2", 3); _uiHelper.Received().StartAsynchronously(Arg.Any<Action>()); }