Преглед изворни кода

[mobile_static] Fix System.Runtime.Serialization tests with preprocessor
usage

Alexander Kyte пре 9 година
родитељ
комит
ef65c56fa7

+ 2 - 0
mcs/class/System.Runtime.Serialization/Test/System.Runtime.Serialization/DataContractResolverTest.cs

@@ -33,7 +33,9 @@ using System;
 using System.Collections;
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
+#if !MOBILE_STATIC
 using System.Data;
+#endif
 using System.IO;
 using System.Net;
 using System.Runtime.Serialization;

+ 4 - 0
mcs/class/System.Runtime.Serialization/Test/System.Runtime.Serialization/XmlObjectSerializerTest.cs

@@ -37,7 +37,9 @@ using System;
 using System.Collections;
 using System.Collections.Generic;
 using System.Collections.ObjectModel;
+#if !MOBILE_STATIC
 using System.Data;
+#endif
 using System.IO;
 using System.Linq;
 using System.Net;
@@ -1475,6 +1477,7 @@ namespace MonoTests.System.Runtime.Serialization
 			Assert.AreEqual (parent, parent.Child.Parent, "#2");
 		}
 
+#if !MOBILE_STATIC
 		[Test]
 		public void IXmlSerializableCallConstructor ()
 		{
@@ -1525,6 +1528,7 @@ namespace MonoTests.System.Runtime.Serialization
 			
 			var ds = (DataSet) x.ReadObject (r);
 		}
+#endif
 
 		[Test]
 		[ExpectedException (typeof (InvalidDataContractException))] // BaseConstraintType1 is neither DataContract nor Serializable.