public void SetBusyNormal_MoreThanOneTimeAndSetFreeForceOnce_CursorIsArrow() { CursorStateService cursorStateService = new CursorStateService(); cursorStateService.SetCursorBusy(); cursorStateService.SetCursorBusy(); cursorStateService.SetCursorFreeForce(); Assert.AreEqual(Cursors.Arrow, cursorStateService.Cursor.ApplicationCursor); }
public void SetBusyNormal_MoreThanOneTimeAndSetFreeForceOnceThenFinishForedFree_CursorIsWait() { CursorStateService cursorStateService = new CursorStateService(); cursorStateService.SetCursorBusy(); cursorStateService.SetCursorBusy(); cursorStateService.SetCursorFreeForce(); cursorStateService.FinishForcedFreeCursor(); Assert.AreEqual(Cursors.Wait, cursorStateService.Cursor.ApplicationCursor); }
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); }
public void SetBusyNormal_MoreThanOneTime_CursorIsWait() { CursorStateService cursorStateService = new CursorStateService(); cursorStateService.SetCursorBusy(); cursorStateService.SetCursorBusy(); cursorStateService.SetCursorBusy(); Assert.AreEqual(Cursors.Wait, cursorStateService.Cursor.ApplicationCursor); }
public void Construction_Null_CursorIsArrow() { CursorStateService cursorStateService = new CursorStateService(); Assert.AreEqual(Cursors.Arrow, cursorStateService.Cursor.ApplicationCursor); }