WOX2
Diff Revisions
13
vs
14
for /trunk/CSharp/tests/wox/serial/tests/mains/TestListCourses.cs
|
@@ -3,18 +3,30 @@ |
3 |
3 |
|
using NUnit.Framework; |
4 |
4 |
|
using wox.serial.tests.objects; |
5 |
5 |
|
|
|
6 |
+ |
/// <header> |
|
7 |
+ |
/// <wox> |
|
8 |
+ |
/// <version>1.0</version> |
|
9 |
+ |
/// <author>Carlos R. Jaimez Gonzalez</author> |
|
10 |
+ |
/// <author>Simon M. Lucas</author> |
|
11 |
+ |
/// <site>http://woxserializer.sourceforge.net/</site> |
|
12 |
+ |
/// </wox> |
|
13 |
+ |
/// <wox> |
|
14 |
+ |
/// <version>1.5</version> |
|
15 |
+ |
/// <author>Steven M Lewis</author> |
|
16 |
+ |
/// </wox> |
|
17 |
+ |
/// <wox> |
|
18 |
+ |
/// <version>2.0</version> |
|
19 |
+ |
/// <author>George A Smith</author> |
|
20 |
+ |
/// <svn>http://woxserializer.sourceforge.net/</svn> |
|
21 |
+ |
/// <note>XML form for vs 2 is more compact and therefor incompatible with vs 1</note> |
|
22 |
+ |
/// </wox> |
|
23 |
+ |
/// </header> |
|
24 |
+ |
|
6 |
25 |
|
namespace wox.serial.tests.mains |
7 |
26 |
|
{ |
8 |
|
- |
/** |
9 |
|
- |
* This class provides an example of an ArrayList of Course objects. |
10 |
|
- |
* The main method uses the Easy class to serialize the ArrayList to XML (save method); |
11 |
|
- |
* and to de-serialize the XML to an ArrayList object back again (load method). |
12 |
|
- |
* http://woxserializer.sourceforge.net/ |
13 |
|
- |
* |
14 |
|
- |
* Authors: Carlos R. Jaimez Gonzalez |
15 |
|
- |
* Simon M. Lucas |
16 |
|
- |
* Version: TestListCourses.cs - 1.0 |
17 |
|
- |
*/ |
|
27 |
+ |
/// <summary> |
|
28 |
+ |
/// This class provides an example of an ArrayList of Course objects. |
|
29 |
+ |
/// </summary> |
18 |
30 |
|
|
19 |
31 |
|
public class TestListCourses |
20 |
32 |
|
{ |
|
@@ -26,12 +38,9 @@ |
26 |
38 |
|
} |
27 |
39 |
|
} |
28 |
40 |
|
|
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 |
|
- |
*/ |
|
41 |
+ |
/// <summary> |
|
42 |
+ |
/// This method shows how easy is to serialize and de-serialize C# objects to/from XML. |
|
43 |
+ |
/// </summary> |
35 |
44 |
|
// public static void Main( string[] pArgs ) |
36 |
45 |
|
public static void WantTaBeMain(String[] pArgs) |
37 |
46 |
|
{ |
|
@@ -50,11 +59,11 @@ |
50 |
59 |
|
String data = easy.Format(list); |
51 |
60 |
|
//object from the XML |
52 |
61 |
|
var newList = (ArrayList)easy.Parse(data); |
53 |
|
- |
|
|
62 |
+ |
|
54 |
63 |
|
//print the object just loaded |
55 |
64 |
|
printArray( newList ); |
56 |
65 |
|
|
57 |
66 |
|
Assert.AreEqual(data, easy.Format(newList)); |
58 |
67 |
|
} |
59 |
68 |
|
} |
60 |
|
- |
} |
|
69 |
+ |
} |