//Feedback Check
var generalFeedbackQuery = from feedbackElements in xml.Elements("feedback")
select new
{
Feedback = feedbackElements.Element("general").Value,
PostiveFeedback = feedbackElements.Element("positive").Value,
NegativeFeedback = feedbackElements.Element("negative").Value
};
Assert.AreEqual(actual.feedback, generalFeedbackQuery.ElementAt(0).Feedback);
Assert.AreEqual(actual.positiveFeedback, generalFeedbackQuery.ElementAt(0).PostiveFeedback);
Assert.AreEqual(actual.negativeFeedback, generalFeedbackQuery.ElementAt(0).NegativeFeedback);
Is it possible to check whether the query returned anything?
Like
if(generalFeedbackQuery.Count())....
This seems to work, but if you add a watch on the Count it doesn't seem to exist...