public void TestSerialization() { using (var stream = new ComparisonStream(FilePath)) { using (var writer = new AmfWriter(stream)) { writer.Run(this, Name, Format); } stream.AssertSameLength(); } }