static void Main(string[] args)
        {
            Result.ResultOfTest = 0;
            Test test1 = new Test("First");

            Console.WriteLine("Enter your name and surname.");
            User student1 = new User(Console.ReadLine(), Console.ReadLine());

            InputAndOutput.ShowTest(test1);
            Console.WriteLine("Результат теста\n" + Result.ResultOfTest);
        }
        static public void ShowTest(Test test)
        {
            foreach (var k in test.ListOfQuestions)
            {
                InputAndOutput.ShowQuestion(k);

                Console.WriteLine("___________________________");

                test.Logic(k);

                Console.WriteLine();
            }
        }
Beispiel #3
0
 public Test(string testName)
 {
     this.TestName   = testName;
     ListOfQuestions = new List <QuestionPlusAnswers>();
     InputAndOutput.AddQuestionFromFile(ListOfQuestions);
 }