Beispiel #1
0
        private void Verify(SerializedLibrary slib, string outputFile)
        {
            using (FileUnitTester fut = new FileUnitTester(outputFile))
            {
                XmlTextWriter writer = new FilteringXmlWriter(fut.TextWriter);
                writer.Formatting = Formatting.Indented;
                XmlSerializer ser = SerializedLibrary.CreateSerializer_v1(slib.GetType());
                ser.Serialize(writer, slib);

                fut.AssertFilesEqual();
            }
        }