Esempio n. 1
0
        public static void PrintAll(Action <string[]> entryPoint)
        {
            string input = InstrunctionsCommand.PrintAll +
                           PlaybackTest.Seed +
                           Command.Exit;

            PlaybackTest.TestCase(entryPoint, input, "InstructionsPrintAll.txt");
        }
Esempio n. 2
0
        public static void ShortRangeSensorScan1(Action <string[]> entryPoint)
        {
            string input = InstrunctionsCommand.PrintAll + PlaybackTest.Seed +
                           Command.ShortRangeSensorScan +
                           Command.Exit;

            PlaybackTest.TestCase(entryPoint, input, "ShortRangeSensorScan1.txt");
        }
Esempio n. 3
0
        public static void Skip(Action <string[]> entryPoint)
        {
            string input = InstrunctionsCommand.Skip +
                           PlaybackTest.Seed +
                           Command.Exit;

            PlaybackTest.TestCase(entryPoint, input, "InstructionsSkip.txt");
        }
Esempio n. 4
0
        public static void FirePhasers1(Action <string[]> entryPoint)
        {
            string input = InstrunctionsCommand.PrintAll + PlaybackTest.Seed +
                           Command.FirePhasers +
                           Command.Exit;

            PlaybackTest.TestCase(entryPoint, input, "FirePhasers1.txt");
        }
Esempio n. 5
0
        public static void DamageControlReport1(Action <string[]> entryPoint)
        {
            string input = InstrunctionsCommand.PrintAll + PlaybackTest.Seed +
                           Command.DamageControlReport +
                           Command.Exit;

            PlaybackTest.TestCase(entryPoint, input, "DamageControlReport1.txt");
        }
Esempio n. 6
0
        public static void GalaticRecord1(Action <string[]> entryPoint)
        {
            string input = InstrunctionsCommand.PrintAll + PlaybackTest.Seed +
                           Command.CallOnLibraryComputer +
                           Command.CallOnLibraryComputer.CumulativeGalaticRecord +
                           Command.Exit;

            PlaybackTest.TestCase(entryPoint, input, "LibraryGalaticRecord1.txt");
        }
Esempio n. 7
0
        public static void ListCommands1(Action <string[]> entryPoint)
        {
            string input = InstrunctionsCommand.Skip +
                           PlaybackTest.Seed +
                           Environment.NewLine +
                           Command.Exit;

            PlaybackTest.TestCase(entryPoint, input, "ListCommands1.txt");
        }
Esempio n. 8
0
        public static void Computer1(Action <string[]> entryPoint)
        {
            string input = InstrunctionsCommand.PrintAll + PlaybackTest.Seed +
                           Command.CallOnLibraryComputer +
                           "3" + Environment.NewLine +  // Invalid command
                           Command.Exit;

            PlaybackTest.TestCase(entryPoint, input, "LibraryComputer1.txt");
        }
Esempio n. 9
0
        public static void StatusReport1(Action <string[]> entryPoint)
        {
            string input = InstrunctionsCommand.PrintAll + PlaybackTest.Seed +
                           Command.CallOnLibraryComputer +
                           Command.CallOnLibraryComputer.StatusReport +
                           Command.Exit;

            PlaybackTest.TestCase(entryPoint, input, "LibraryStatusReport1.txt");
        }
Esempio n. 10
0
        public static void FireTorpedo1(Action <string[]> entryPoint)
        {
            string input = InstrunctionsCommand.PrintAll + PlaybackTest.Seed +
                           Command.FirePhotonTorpedo +
                           "1" + Environment.NewLine +  //  Course
                           Command.Exit;

            PlaybackTest.TestCase(entryPoint, input, "FirePhotonTorpedo1.txt");
        }
Esempio n. 11
0
        public static void SetCourse1(Action <string[]> entryPoint)
        {
            string input = InstrunctionsCommand.PrintAll +
                           PlaybackTest.Seed +
                           Command.SetCourse +
                           Command.SetCourse.InvalidCourse +
                           Command.Exit;

            PlaybackTest.TestCase(entryPoint, input, "SetCourse1.txt");
        }
Esempio n. 12
0
        public static void Shields1(Action <string[]> entryPoint)
        {
            string input = InstrunctionsCommand.PrintAll + PlaybackTest.Seed +
                           Command.Shields +
                           "3001" + Environment.NewLine + //  Invalid units
                           "3000" + Environment.NewLine + //  Valid unit
                           Command.Exit;

            PlaybackTest.TestCase(entryPoint, input, "Shields1.txt");
        }
Esempio n. 13
0
        public static void SetCourse4(Action <string[]> entryPoint)
        {
            string input = InstrunctionsCommand.PrintAll + PlaybackTest.Seed +
                           Command.SetCourse +
                           "2" + Environment.NewLine +  //  Course
                           "1" + Environment.NewLine +  //  Warp factor
                           Command.Exit;

            PlaybackTest.TestCase(entryPoint, input, "SetCourse4.txt");
        }
Esempio n. 14
0
        public static void PrintPage(Action <string[]> entryPoint)
        {
            string input = InstrunctionsCommand.PrintPage +
                           "1" + Environment.NewLine +
                           "2" + Environment.NewLine +
                           "3" + Environment.NewLine +
                           PlaybackTest.Seed +
                           Command.Exit;

            PlaybackTest.TestCase(entryPoint, input, "InstructionsPrintPage.txt");
        }
Esempio n. 15
0
        public static void TorpedoData2(Action <string[]> entryPoint)
        {
            string input = InstrunctionsCommand.PrintAll + PlaybackTest.Seed +
                           Command.CallOnLibraryComputer +
                           Command.CallOnLibraryComputer.TorpedoData +
                           Command.CallOnLibraryComputer.TorpedoData.UseCalculator +
                           "1,1,1,1" + Environment.NewLine + //
                           "0" + Environment.NewLine +       // Invalid command
                           Command.Exit;

            PlaybackTest.TestCase(entryPoint, input, "LibraryTorpedoData2.txt");
        }
Esempio n. 16
0
        public static void FirePhasers2(Action <string[]> entryPoint)
        {
            string input = InstrunctionsCommand.PrintAll + PlaybackTest.Seed +
                           Command.SetCourse +
                           "2" + Environment.NewLine +   //  Course
                           "1" + Environment.NewLine +   //  Warp factor
                           Command.FirePhasers +
                           "100" + Environment.NewLine + //  Units of energy
                           Command.Exit;

            PlaybackTest.TestCase(entryPoint, input, "FirePhasers2.txt");
        }
Esempio n. 17
0
        public static void SetCourse2(Action <string[]> entryPoint)
        {
            string input = InstrunctionsCommand.PrintAll +
                           PlaybackTest.Seed +
                           Command.SetCourse +
                           "0.9" + Environment.NewLine +
                           "9.1" + Environment.NewLine +
                           Command.SetCourse.InvalidCourse +
                           Command.Exit;

            PlaybackTest.TestCase(entryPoint, input, "SetCourse2.txt");
        }
Esempio n. 18
0
        public static void Destroyed(Action <string[]> entryPoint)
        {
            string input = InstrunctionsCommand.PrintAll +
                           PlaybackTest.Seed +
                           Command.SetCourse +
                           Course.Left +
                           "3" + Environment.NewLine +  //  Warp factor
                           Command.FirePhasers +
                           "1" + Environment.NewLine +  //  Energy units
                           Command.Exit;

            PlaybackTest.TestCase(entryPoint, input, "Destroyed.txt");
        }
Esempio n. 19
0
        public static void TorpedoData3(Action <string[]> entryPoint)
        {
            string input = InstrunctionsCommand.PrintAll + PlaybackTest.Seed +
                           Command.SetCourse +
                           "2" + Environment.NewLine +  //  Course
                           "1" + Environment.NewLine +  //  Warp factor
                           Command.CallOnLibraryComputer +
                           Command.CallOnLibraryComputer.TorpedoData +
                           Command.Exit +
                           Command.Exit;

            PlaybackTest.TestCase(entryPoint, input, "LibraryTorpedoData3.txt");
        }