public void Fifth1() { XmlSerializer serializer = new XmlSerializer(typeof(QuestionnaireScope)); var computer = new OutcomeComputer(_log); using (var reader = new StreamReader(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "scopes", "Пятерка.xml"))) { var scope = (QuestionnaireScope)serializer.Deserialize(reader); var result = computer.ComputeOutcomes(new QuestionnaireChoices { ScopeId = scope.Id, AnswerIds = new int[] { 1, 27, 53, 78 } }, scope); Assert.AreEqual(2, result.Count); Assert.AreEqual("Нейротизм", result[0].CaptionText); Assert.AreEqual("Тревожность", result[1].CaptionText); } }