From: Owen R. <exo...@us...> - 2005-09-08 04:02:07
|
Update of /cvsroot/netreflector/NetReflector/src/NetReflector.Test/resources In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8996/src/NetReflector.Test/resources Modified Files: HashTestClass.cs Log Message: attempting to fix long standing broken build by sorting members Index: HashTestClass.cs =================================================================== RCS file: /cvsroot/netreflector/NetReflector/src/NetReflector.Test/resources/HashTestClass.cs,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** HashTestClass.cs 22 Oct 2004 12:45:34 -0000 1.6 --- HashTestClass.cs 8 Sep 2005 04:01:57 -0000 1.7 *************** *** 10,16 **** [ReflectorHash("elements", "id", Required=false)] ! public Hashtable ElementHash; ! [ReflectorHash("list", InstanceType=typeof(Hashtable), Required=false)] public IDictionary List { --- 10,16 ---- [ReflectorHash("elements", "id", Required=false)] ! public SortedList ElementHash; ! [ReflectorHash("list", InstanceType=typeof(SortedList), Required=false)] public IDictionary List { *************** *** 21,31 **** public static HashTestClass CreateHashtableWithStrings() { ! Hashtable hashtable = new Hashtable(); ! hashtable.Add("1", "a"); ! hashtable.Add("2", "b"); ! hashtable.Add("3", "c"); HashTestClass hash = new HashTestClass(); ! hash.ElementHash = hashtable; return hash; } --- 21,31 ---- public static HashTestClass CreateHashtableWithStrings() { ! SortedList list = new SortedList(); ! list.Add("1", "a"); ! list.Add("2", "b"); ! list.Add("3", "c"); HashTestClass hash = new HashTestClass(); ! hash.ElementHash = list; return hash; } *************** *** 33,43 **** public static HashTestClass CreateHashtableWithElements() { ! Hashtable hashtable = new Hashtable(); ! hashtable.Add("1", ElementTestClass.Create("1")); ! hashtable.Add("2", ElementTestClass.Create("2")); ! hashtable.Add("3", ElementTestClass.Create("3")); HashTestClass hash = new HashTestClass(); ! hash.ElementHash = hashtable; return hash; } --- 33,43 ---- public static HashTestClass CreateHashtableWithElements() { ! SortedList list = new SortedList(); ! list.Add("1", ElementTestClass.Create("1")); ! list.Add("2", ElementTestClass.Create("2")); ! list.Add("3", ElementTestClass.Create("3")); HashTestClass hash = new HashTestClass(); ! hash.ElementHash = list; return hash; } *************** *** 55,64 **** public static string GetXmlForHashtableWithStrings() { ! return @"<hashtest><elements><string id=""2"">b</string><string id=""3"">c</string><string id=""1"">a</string></elements></hashtest>"; } public static string GetXmlForHashtableWithElements() { ! return @"<hashtest><elements><element id=""2""><id>2</id></element><element id=""3""><id>3</id></element><element id=""1""><id>1</id></element></elements></hashtest>"; } } --- 55,64 ---- public static string GetXmlForHashtableWithStrings() { ! return @"<hashtest><elements><string id=""1"">a</string><string id=""2"">b</string><string id=""3"">c</string></elements></hashtest>"; } public static string GetXmlForHashtableWithElements() { ! return @"<hashtest><elements><element id=""1""><id>1</id></element><element id=""2""><id>2</id></element><element id=""3""><id>3</id></element></elements></hashtest>"; } } |