public void StartTest()
        {
            json = "{ \"593\":{ \"LWin\":{ \"value\":256} },\"683\":{ \"LWin\":{ \"value\":257} },\"1332\":{ \"T\":{ \"value\":256} },\"1402\":{ \"E\":{ \"value\":256} },\"1488\":{ \"T\":{ \"value\":257},\"E\":{ \"value\":257} },\"1582\":{ \"S\":{ \"value\":256} },\"1686\":{ \"T\":{ \"value\":256} },\"1766\":{ \"S\":{ \"value\":257},\"T\":{ \"value\":257} },\"Name\":\"test\",\"Desc\":\"test\",\"recId\":\"5fe03f40-b67f-4fc8-8c57-0a84fd4c9441\",\"userName\":\"test\"}";

            play = new PlayRecording(json, 1);
            Assert.AreEqual(play.Start(), 0);
        }
        /*
         * Method: testRecording()
         * Summary: Begins the playback of keystrokes
         * Parameter: sender - The control that the action is for, in this case the button
         * Parameter: e - Any arguments the function may use
         */
        private void testRecording(object sender, EventArgs e)
        {
            // If there are no keys loaded to play, display a message informing the user of this
            if (recJson == null)
            {
                BigMessageBox.Show("Error: There is no recording to play");
                return;
            }

            startStopRecBtn.Click -= startRecording;
            playRec = new PlayRecording(recJson, 1); // Initialise the playRec object with the keys returned from the createRec class
            int result = playRec.Start(); // Begin playback

            if (result >= 0)
                BigMessageBox.Show("Complete");

            startStopRecBtn.Click += startRecording;
        }
 /*
  * Method: launchPlaying()
  * Summary: Begins the playback of keystrokes
  * Parameter: sender - The control that the action is for, in this case the button
  * Parameter: e - Any arguments the function may use
  */
 private void testRecording(object sender, EventArgs e)
 {
     // If there are no keys loaded to play, display a message informing the user of this
     if (recJson == null)
     {
         BigMessageBox.Show("Error: There is no recording to play");
         return;
     }
     playRec = new PlayRecording(recJson, recSpeed); // Initialise the playRec object with the keys returned from the createRec class
     int errors = playRec.Start(); // Begin playback
     if (errors > 0)
         BigMessageBox.Show("The recording may not have played successfully. If this is the case, try reducing the speed");
 }