public void GetCursorPath_fromGtoL_Success_Left() { var path = new OnScreenKeyboardScripter.Lib.Keyboard() .GetCursorPath('G', 'L'); var expected = new List <OnScreenKeyboardScripter.Lib.MoveCursor>() { Lib.MoveCursor.Left }; Assert.IsTrue(expected.SequenceEqual(path)); }
public void GetCursorPath_fromAto4_Success_Up() { var path = new OnScreenKeyboardScripter.Lib.Keyboard() .GetCursorPath('A', '4'); var expected = new List <OnScreenKeyboardScripter.Lib.MoveCursor>() { Lib.MoveCursor.Up }; Assert.IsTrue(expected.SequenceEqual(path)); }
public void GetCursorPath_fromBtoH_Success_Down() { var path = new OnScreenKeyboardScripter.Lib.Keyboard() .GetCursorPath('B', 'H'); var expected = new List <OnScreenKeyboardScripter.Lib.MoveCursor>() { Lib.MoveCursor.Down }; Assert.IsTrue(expected.SequenceEqual(path)); }
public void GetCursorPath_fromMtoN_Success_Right() { var path = new OnScreenKeyboardScripter.Lib.Keyboard() .GetCursorPath('M', 'N'); var expected = new List <OnScreenKeyboardScripter.Lib.MoveCursor>() { Lib.MoveCursor.Right }; Assert.IsTrue(expected.SequenceEqual(path)); }