Remotion.Linq.IntegrationTests.Common.Utilities.TestResultSerializer.Serialize C# (CSharp) Method

Serialize() public method

public Serialize ( object value ) : void
value object
return void
    public void Serialize (object value)
    {
      WriteSpacing();

      SerializeWithoutSpacing(value);
    }

Same methods

TestResultSerializer::Serialize ( object value, MethodBase currentMethod ) : void
TestResultSerializer::Serialize ( object value, string name ) : void

Usage Example

 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();
 }
All Usage Examples Of Remotion.Linq.IntegrationTests.Common.Utilities.TestResultSerializer::Serialize