public void OnTap_IsActivated_IsNotDisabledForPopUp_IsEnabledInput_CallsParentScrollerInSequence() { ITestUIElementConstArg arg = CreateMockArg(); TestUIElement testUIE = new TestUIElement(arg); testUIE.SetIsActivated_Test(true); testUIE.SetIsDisabledForPopUp_Test(false); testUIE.SetIsEnabledInput_Test(true); IScroller parentScroller = testUIE.GetProximateParentScroller(); testUIE.OnTap(1); parentScroller.Received(1).UpdateVelocity(0f, 0); parentScroller.Received(1).UpdateVelocity(0f, 1); parentScroller.Received(1).ResetDrag(); parentScroller.Received(1).CheckAndPerformStaticBoundarySnap(); }
public void Run_CallsScrollerSetRunningMotorProcessThis() { IScrollerElementMotorProcessConstArg arg = CreateMockConstArg(); IScroller scroller = arg.scroller; TestScrollerElementMotorProcess process = new TestScrollerElementMotorProcess(arg); process.Run(); scroller.Received(1).SwitchRunningElementMotorProcess(process, 0); }