public void SetBusyNormal_MoreThanOneTimeAndSetFreeTimeSameTimes_CursorIsArrow() { CursorStateService cursorStateService = new CursorStateService(); cursorStateService.SetCursorBusy(); cursorStateService.SetCursorBusy(); cursorStateService.SetCursorFreeNormal(); cursorStateService.SetCursorFreeNormal(); Assert.AreEqual(Cursors.Arrow, cursorStateService.Cursor.ApplicationCursor); }
public void SetBusyNormal_ComplexFlow_CursorIsArrow() { CursorStateService cursorStateService = new CursorStateService(); cursorStateService.SetCursorBusy(); cursorStateService.SetCursorBusy(); cursorStateService.SetCursorFreeForce(); cursorStateService.FinishForcedFreeCursor(); cursorStateService.SetCursorFreeNormal(); cursorStateService.SetCursorFreeNormal(); Assert.AreEqual(Cursors.Arrow, cursorStateService.Cursor.ApplicationCursor); }
public void SetBusyNormal_MoreThanOneTimeAndSetFreeTimeOnce_CursorIsWait() { CursorStateService cursorStateService = new CursorStateService(); cursorStateService.SetCursorBusy(); cursorStateService.SetCursorBusy(); cursorStateService.SetCursorBusy(); cursorStateService.SetCursorFreeNormal(); Assert.AreEqual(Cursors.Wait, cursorStateService.Cursor.ApplicationCursor); }