예제 #1
0
 public void SetBusyNormal_MoreThanOneTimeAndSetFreeForceOnce_CursorIsArrow()
 {
     CursorStateService cursorStateService = new CursorStateService();
     cursorStateService.SetCursorBusy();
     cursorStateService.SetCursorBusy();
     cursorStateService.SetCursorFreeForce();
     Assert.AreEqual(Cursors.Arrow, cursorStateService.Cursor.ApplicationCursor);
 }
예제 #2
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);
 }
예제 #3
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);
 }
예제 #4
0
 public void SetBusyNormal_MoreThanOneTime_CursorIsWait()
 {
     CursorStateService cursorStateService = new CursorStateService();
     cursorStateService.SetCursorBusy();
     cursorStateService.SetCursorBusy();
     cursorStateService.SetCursorBusy();
     Assert.AreEqual(Cursors.Wait, cursorStateService.Cursor.ApplicationCursor);
 }
예제 #5
0
 public void Construction_Null_CursorIsArrow()
 {
     CursorStateService cursorStateService = new CursorStateService();
     Assert.AreEqual(Cursors.Arrow, cursorStateService.Cursor.ApplicationCursor);
 }