public void GetTypeListTest() { _questionType.SetAmountOfQuestion(QUESTION_AMOUNT, EXAMINATION_TYPE_ONE); _questionType.CreateRandomQuestionTypeList(); _typeListTarget = new PrivateObject(_questionType); List <int> list = _questionType.GetTypeList(); Assert.AreEqual(list, _typeListTarget.GetFieldOrProperty("_typeList")); }