Пример #1
0
 public void SetBusyNormal_MoreThanOneTimeAndSetFreeTimeSameTimes_CursorIsArrow()
 {
     CursorStateService cursorStateService = new CursorStateService();
     cursorStateService.SetCursorBusy();
     cursorStateService.SetCursorBusy();
     cursorStateService.SetCursorFreeNormal();
     cursorStateService.SetCursorFreeNormal();
     Assert.AreEqual(Cursors.Arrow, cursorStateService.Cursor.ApplicationCursor);
 }
Пример #2
0
 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);
 }
Пример #3
0
 public void SetBusyNormal_MoreThanOneTimeAndSetFreeTimeOnce_CursorIsWait()
 {
     CursorStateService cursorStateService = new CursorStateService();
     cursorStateService.SetCursorBusy();
     cursorStateService.SetCursorBusy();
     cursorStateService.SetCursorBusy();
     cursorStateService.SetCursorFreeNormal();
     Assert.AreEqual(Cursors.Wait, cursorStateService.Cursor.ApplicationCursor);
 }