Subversion Repository Public Repository

WOX2

Diff Revisions 13 vs 14 for /trunk/CSharp/tests/wox/serial/tests/mains/TestReferences.cs

Diff revisions: vs.
  @@ -2,19 +2,34 @@
2 2 using NUnit.Framework;
3 3 using wox.serial.tests.objects;
4 4
5 + /// <header>
6 + /// <wox>
7 + /// <version>1.0</version>
8 + /// <author>Carlos R. Jaimez Gonzalez</author>
9 + /// <author>Simon M. Lucas</author>
10 + /// <site>http://woxserializer.sourceforge.net/</site>
11 + /// </wox>
12 + /// <wox>
13 + /// <version>1.5</version>
14 + /// <author>Steven M Lewis</author>
15 + /// </wox>
16 + /// <wox>
17 + /// <version>2.0</version>
18 + /// <author>George A Smith</author>
19 + /// <svn>http://woxserializer.sourceforge.net/</svn>
20 + /// <note>XML form for vs 2 is more compact and therefor incompatible with vs 1</note>
21 + /// </wox>
22 + /// </header>
23 +
5 24 namespace wox.serial.tests.mains
6 25 {
7 - /**
8 - * This class provides an example of how WOX handles object references.
9 - * The main method uses the Easy class to serialize an array of Product objects
10 - * to XML (save method); and to de-serialize the XML to an array of Product objects
11 - * back again (load method). The array contains duplicate objects.
12 - * http://woxserializer.sourceforge.net/
13 - *
14 - * Authors: Carlos R. Jaimez Gonzalez
15 - * Simon M. Lucas
16 - * Version: TestReferences.cs - 1.0
17 - */
26 + /// <summary>
27 + /// This method is the entry point to write an object in XML.
28 + /// This class provides an example of how WOX handles object references.
29 + /// The main method uses the Easy class to serialize an array of Product objects
30 + /// to XML; and to de-serialize the XML to an array of Product objects back again.
31 + /// The array contains duplicate objects.
32 + /// </summary>
18 33
19 34 public class TestReferences
20 35 {
  @@ -26,12 +41,9 @@
26 41 }
27 42 }
28 43
29 - /**
30 - * This method shows how easy is to serialize and de-serialize C# objects
31 - * to/from XML. The XML representation of the objects is a standard WOX represntation.
32 - * For more information about the XML representation please visit:
33 - * http://woxserializer.sourceforge.net/
34 - */
44 + /// <summary>
45 + /// This method shows how easy is to serialize and de-serialize C# objects to/from XML.
46 + /// </summary>
35 47 // public static void Main( string[] pArgs )
36 48 public static void WantTaBeMain(String[] pArgs)
37 49 {
  @@ -49,11 +61,11 @@
49 61 String data = easy.Format(products);
50 62 //object from the XML
51 63 var newProducts = (Product[])easy.Parse(data);
52 -
64 +
53 65 //print the new object - it is the same as before
54 66 PrintProducts( newProducts );
55 67
56 68 Assert.AreEqual(data, easy.Format(newProducts));
57 69 }
58 70 }
59 - }
71 + }