public static void TEST() { try { var ch = false; while (!ch) { ch = IOSystem.InterfacedViewChoice(new string[] { "Метод наименьших квадратов:", "Метод Гаусса", "Метод Грама-Шмидта" }, new EmptyD[] { LSMTest, GaussTest, GramSchmidtTest } ); } //BigTest(); } catch (Exception e) { Console.WriteLine(e); } }
public static void TEST() { while (true) { var testerNames = Enum.GetNames(typeof(TesterName)); bool testResult = IOSystem.InterfacedViewChoice(testerNames.Skip(1).ToArray(), new EmptyD[] { DerSystemsTEST.TEST, FincValueFindersTest.TEST, IntegralTEST.TEST, LinAlTester.TEST, SplineTest.TEST }); if (!testResult) { Console.WriteLine("Введите корректные значения!"); Console.WriteLine(); continue; } Console.WriteLine(); Console.WriteLine("Хотите выйти? y/n"); if (Console.ReadLine().ToLower() == "y") { break; } Console.WriteLine(); } }
public static void TEST() { while (true) { var testerNames = Enum.GetNames(typeof(TesterName)); bool testResult = IOSystem.InterfacedViewChoice(testerNames.Skip(1).ToArray(), new EmptyD[] { CustomListsTester.TEST, SortTest.TEST, HashTableTest.TEST, BinaryTreeTester.TEST, GraphTester.TEST }); if (!testResult) { Console.WriteLine("Введите корректные значения!"); Console.WriteLine(); continue; } Console.WriteLine(); Console.WriteLine("Хотите выйти? y/n"); if (Console.ReadLine().ToLower() == "y") { break; } Console.WriteLine(); } }
public static void TEST() { bool choiceStatus = false; while (!choiceStatus) { choiceStatus = IOSystem.InterfacedViewChoice(new string[] { "MyHashTable", "HashTableList" }, new WorkMainTester.EmptyD[] { MyHashTableTEST, HashTableListTEST }); if (!choiceStatus) { Console.WriteLine("Введите корректное значение!"); Console.WriteLine(); } } }
public static void TEST() { while (true) { var testerNames = Enum.GetNames(typeof(ListName)); bool testResult = IOSystem.InterfacedViewChoice(testerNames.Skip(1).ToArray(), new WorkMainTester.EmptyD[] { DeckTest, QueueTest, SetTest, StackTest }); if (!testResult) { Console.WriteLine("Введите корректные значения!"); Console.WriteLine(); continue; } Console.WriteLine(); break; } }