コード例 #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);
 }