Assert.AreEqual (arr [1], ret [1], "#3");\r
}\r
\r
+ [Test]\r
+ public void ReadContentAs ()\r
+ {\r
+ var xr = XmlReader.Create (new StringReader ("<doc a=' 1 '/>"));\r
+ xr.Read ();\r
+ xr.MoveToAttribute ("a");\r
+\r
+ Assert.AreEqual ((Byte) 1, xr.ReadContentAs (typeof (Byte), null), "#1");\r
+ Assert.AreEqual ((SByte) 1, xr.ReadContentAs (typeof (SByte), null), "#2");\r
+ Assert.AreEqual ((Int16) 1, xr.ReadContentAs (typeof (Int16), null), "#3");\r
+ Assert.AreEqual ((UInt16) 1, xr.ReadContentAs (typeof (UInt16), null), "#4");\r
+ Assert.AreEqual ((Int32) 1, xr.ReadContentAs (typeof (Int32), null), "#5");\r
+ Assert.AreEqual ((UInt32) 1, xr.ReadContentAs (typeof (UInt32), null), "#6");\r
+ Assert.AreEqual ((Int64) 1, xr.ReadContentAs (typeof (Int64), null), "#7");\r
+ Assert.AreEqual ((UInt64) 1, xr.ReadContentAs (typeof (UInt64), null), "#8");\r
+ }\r
+\r
#if NET_4_5\r
[Test]\r
[ExpectedException(typeof(InvalidOperationException))]\r