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); }