Ejemplo n.º 1
0
 public void SetBusyNormal_MoreThanOneTimeAndSetFreeForceOnceThenFinishForedFree_CursorIsWait()
 {
     CursorStateService cursorStateService = new CursorStateService();
     cursorStateService.SetCursorBusy();
     cursorStateService.SetCursorBusy();
     cursorStateService.SetCursorFreeForce();
     cursorStateService.FinishForcedFreeCursor();
     Assert.AreEqual(Cursors.Wait, cursorStateService.Cursor.ApplicationCursor);
 }
Ejemplo n.º 2
0
 public void SetBusyNormal_ComplexFlow_CursorIsWait()
 {
     CursorStateService cursorStateService = new CursorStateService();
     cursorStateService.SetCursorBusy();
     cursorStateService.SetCursorBusy();
     cursorStateService.SetCursorFreeForce();
     cursorStateService.FinishForcedFreeCursor();
     cursorStateService.SetCursorFreeNormal();
     Assert.AreEqual(Cursors.Wait, cursorStateService.Cursor.ApplicationCursor);
 }