Subversion Repository Public Repository

WOX2

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

Diff revisions: vs.
  @@ -2,16 +2,32 @@
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 26 public class TestStudent
8 27 {
9 - /**
10 - * This method shows how easy is to serialize and de-serialize C# objects
11 - * to/from XML. The XML representation of the objects is a standard WOX represntation.
12 - * For more information about the XML representation please visit:
13 - * http://woxserializer.sourceforge.net/
14 - */
28 + /// <summary>
29 + /// This method shows how easy is to serialize and de-serialize C# objects to/from XML.
30 + /// </summary>
15 31 // public static void Main( string[] pArgs )
16 32 public static void WantTaBeMain(String[] pArgs)
17 33 {
  @@ -31,11 +47,11 @@
31 47 String data = easy.Format(student);
32 48 //object from the XML
33 49 var newStudent = (Student)easy.Parse(data);
34 -
50 +
35 51 //print the new object - it is the same as before
36 52 Console.Out.WriteLine( newStudent );
37 53
38 54 Assert.AreEqual(data, easy.Format(newStudent));
39 55 }
40 56 }
41 - }
57 + }