Пример #1
0
        public static void PrintAll(Action <string[]> entryPoint)
        {
            string input = InstrunctionsCommand.PrintAll +
                           PlaybackTest.Seed +
                           Command.Exit;

            PlaybackTest.TestCase(entryPoint, input, "InstructionsPrintAll.txt");
        }
Пример #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");
        }
Пример #3
0
        public static void Skip(Action <string[]> entryPoint)
        {
            string input = InstrunctionsCommand.Skip +
                           PlaybackTest.Seed +
                           Command.Exit;

            PlaybackTest.TestCase(entryPoint, input, "InstructionsSkip.txt");
        }
Пример #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");
        }
Пример #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");
        }
Пример #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");
        }
Пример #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");
        }
Пример #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");
        }
Пример #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");
        }
Пример #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");
        }
Пример #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");
        }
Пример #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");
        }
Пример #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");
        }
Пример #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");
        }
Пример #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");
        }
Пример #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");
        }
Пример #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");
        }
Пример #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");
        }
Пример #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");
        }