public static void PrintAll(Action <string[]> entryPoint) { string input = InstrunctionsCommand.PrintAll + PlaybackTest.Seed + Command.Exit; PlaybackTest.TestCase(entryPoint, input, "InstructionsPrintAll.txt"); }
public static void ShortRangeSensorScan1(Action <string[]> entryPoint) { string input = InstrunctionsCommand.PrintAll + PlaybackTest.Seed + Command.ShortRangeSensorScan + Command.Exit; PlaybackTest.TestCase(entryPoint, input, "ShortRangeSensorScan1.txt"); }
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"); }
public static void DamageControlReport1(Action <string[]> entryPoint) { string input = InstrunctionsCommand.PrintAll + PlaybackTest.Seed + Command.DamageControlReport + Command.Exit; PlaybackTest.TestCase(entryPoint, input, "DamageControlReport1.txt"); }
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"); }
public static void ListCommands1(Action <string[]> entryPoint) { string input = InstrunctionsCommand.Skip + PlaybackTest.Seed + Environment.NewLine + Command.Exit; PlaybackTest.TestCase(entryPoint, input, "ListCommands1.txt"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }
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"); }