Merge pull request #1213 from fengari/system_timers_timer_opt
[mono.git] / mcs / class / System.XML / Test / System.Xml.Serialization / XmlSerializerTestClasses.cs
index 955a8e3f7cb12f20d34d8afeb3ecd968cd0ddab0..62b3698c8370b86be8543b05441ba6af55b8237f 100644 (file)
@@ -432,6 +432,7 @@ namespace MonoTests.System.Xml.TestClasses
        public class ReadOnlyProperties
        {
                string[] strArr = new string[2] { "string1", "string2" };
+               List<string> strList = new List<string> { "listString1" };
 
                public string[] StrArr
                {
@@ -442,8 +443,21 @@ namespace MonoTests.System.Xml.TestClasses
                {
                        get { return "fff"; }
                }
+
+               public IList<string> StrList { get { return strList; } }
        }
 
+       [Serializable]
+       public class ReadOnlyListProperty {
+               List<string> strList = new List<string> { "listString1", "listString2" };
+
+               public List<string> StrList
+               {
+                       get { return strList; }
+               }
+       }
+
+
        [XmlRoot ("root")]
        public class ListDefaults
        {
@@ -1053,5 +1067,55 @@ namespace MonoTests.System.Xml.TestClasses
                [XmlElementAttribute (DataType = "date")]
                public DateTime SomeDate;
        }
+
+       public class Bug8468BaseClass
+       {
+               public string Base;
+       }
+
+       public class Bug8468MidClass: Bug8468BaseClass
+       {
+               public string Mid;
+       }
+
+       [XmlRoot("Test", Namespace="http://test-namespace")]
+       public class Bug8468Subclass: Bug8468MidClass
+       {
+       }
+
+       [XmlRoot("Test")]
+       public class Bug8468SubclassNoNamespace: Bug8468MidClass
+       {
+       }
+
+       [XmlRoot("Test", Namespace="")]
+       public class Bug8468BaseClassV2
+       {
+               public string Base;
+       }
+
+       public class Bug8468MidClassV2: Bug8468BaseClassV2
+       {
+               public string Mid;
+       }
+
+       [XmlRoot("Test", Namespace="http://test-namespace")]
+       public class Bug8468SubclassV2: Bug8468MidClassV2
+       {
+       }
+
+       [XmlRoot("Test")]
+       public class Bug8468SubclassNoNamespaceV2: Bug8468MidClassV2
+       {
+       }
+       
+       [XmlRoot("Test")]
+       public class Bug9193Class
+       {
+               [XmlElement ("Data", Order=0)]
+               public string[] Data;
+               [XmlElement ("Extra", Order=1)]
+               public string[] Extra;
+       }
 }