示例#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");
        }
        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");
        }