private static void TestTagWriteParse(string fileName, Tag root) { Console.WriteLine("Doing Tag write/parse tests for file " + fileName + "..."); // Write out the contents of a tag, read the output back in and // test for equality. This is a very rigorous test for any non-trivial // file. It tests the parsing, output, and .equals implementation. Console.WriteLine(" Write out the tag and read it back in..."); AssertEquals(TAG_WRITE_PARSE, root, new Tag("test") .ReadString(root.ToString()).GetChild("root")); }