private static string GetActualResult (object queryResult)
{
var stringWriter = new StringWriter();
// Ignore bidirectional associations - we are only interested in the foreign key properties of associations (eg., CategoryID rather than Category)
var serializer = new TestResultSerializer (stringWriter, info => !info.IsDefined (typeof (System.Data.Linq.Mapping.AssociationAttribute), false));
serializer.Serialize (queryResult);
return stringWriter.ToString();
}