public void LogTestStart(int currentStep, ExperimentContentType testType) { CurrentTest = new TestUnit() { TesterId = CurrentId, TestStep = currentStep, TestType = testType, EventList = new List <TestEvent>(), Gender = CurrentGender, TestTime = DateTime.Now, }; CurrentTest.EventList.Add(new TestEvent() { Event = UnitTestEvent.Start, Time = Time.realtimeSinceStartup }); if (CurrentBirth != null) { CurrentTest.BirthDate = CurrentBirth.Value; } if (CurrentPhoneNumber != null) { CurrentTest.PhoneNumber = CurrentPhoneNumber.Value; } }
/// <summary> /// ExperimentState의 기본 Constructor /// </summary> /// <param name="testName">테스트 이름</param> /// <param name="titleText">제목 표시부에 표시할 내용</param> /// <param name="type">선택지 종류</param> /// <param name="answerTitle">정답 제목</param> /// <param name="answerCount">실험자가 선택할 정답 갯수</param> /// <param name="answerMaxLength">숫자 타입 입력에서 입력 텍스트 최대 길이</param> public ExperimentState(string testName, string titleText, ExperimentContentType type, string answerTitle, string[] answerSet, int answerCount, int answerMaxLength) { TestName = testName; MainGuideText = titleText; ContentType = type; AnswerTitle = answerTitle; AnswerSet = answerSet; AnswerCount = answerCount; AnswerMaxLength = answerMaxLength; }