Commit Graph
85 Commits
Author SHA1 Message Date
Atsushi Eno db5275ca56 [xlinq] fix bug #23318 - XComment.ToString() accepts "invalid" values.
Before it passes the value to XmlWriter.WriteComment(), it replaces
invalid values to valid form.
2014-09-24 15:30:32 +08:00
Marek Safar 38c3874627 Merge pull request #1242 from esdrubal/xelement
Fixes XContainer attempt to create a XNode from a null value.
2014-08-29 01:16:24 -09:00
Marcos Henrich 8308eb87e0 Test XElement constructed from array with null values as object.
Covers #20151.
2014-08-29 17:57:31 +08:00
Marcos Henrich 74afbbb110 Test XDocument.Changed event. Covers #18772. 2014-08-29 02:00:30 +08:00
Alexander Köplinger 0450000dc4 [Cleanup] Removed a bunch of superfluous .csproj and .sln files
Most of these files weren't updated in the last >5 years and serve no purpose today, so they only clutter the repository.
2014-08-06 18:02:30 +02:00
Martin Baulig 93fe81b22e This is a .NET 4.5 test. 2014-03-03 17:35:38 +01:00
Martin Baulig 154272d7a6 NUnitLite does not know Assert.IsInstanceOfType(). 2014-02-27 20:39:22 +01:00
Martin Baulig 2d573ae1ce [Sys.Xml]: Allow XElement to be deserialized; fixes #12571. 2014-02-25 18:59:29 +01:00
Atsushi Eno b5a856e716 Fix bug #11298 - in XElement.Replace*(), create snapshot of content first before removal (unlike it is documented!) 2013-08-08 16:02:03 +09:00
Atsushi Eno 3e2f5ef8fc Fix bug #10194 - SetElementValue(nonExistentElementName, null) caused NRE. 2013-08-08 01:36:35 +09:00
Rodrigo Kumpera abe9dc6206 Revert "Fix object::GetType when remoting is enabled."
This reverts commit 93e2d1dc48.
2013-03-01 10:54:09 -05:00
Rodrigo Kumpera 93e2d1dc48 Fix object::GetType when remoting is enabled. 2013-03-01 10:52:03 -05:00
Marek Safar dd4cc7ca66 Tests update for mobile profile 2013-03-01 15:31:25 +01:00
Alan McGovern 8af1fc09c4 [System.Xml.Linq] Add error checking to the XElement constructors
Added matching tests.
2012-08-16 15:24:42 +01:00
Alan McGovern f815f21cd2 Update the tests to do actual verification
Ensure the elements really are added twice.
2012-07-20 16:41:05 +01:00
Alan McGovern 31334e23f0 Use the result of XUtil.ToNode when emitting events
Sometimes the value the user passes in is converted to an XNode. In
these cases we need to use that XNode when emitting the change events.
Added a test covering this change.
2012-07-20 16:41:05 +01:00
Alan McGovern 5f1dfbee09 Emit change events for modifying XElement.Name
Added additional tests for this too.
2012-07-20 16:41:05 +01:00
Alan McGovern 3675edb510 Add some tests to verify behaviour of Annotations 2012-07-20 16:41:05 +01:00
Alan McGovern 6292fb5a82 Implement XObjectChange.Value for XAttribute
We now emit the correct Changing/Changed events when modifying the
value of an XAttribute. Added tests covering the changes.
2012-07-20 16:41:05 +01:00
Alan McGovern 72bef6c0ab Begin fixing the XObject.Changing and XObject.Changed events
Add tests to ensure the event is correctly emitted and correctly propagated
up the tree for the basic Add and Remove operations. Fixed the implementation
accordingly.
2012-07-20 16:41:04 +01:00
Alan McGovern 730ffb72c7 [System.Xml.Linq] Fix some bugs in the tests
Ensure we normalize both the expected and actual output
so they have the same line endings.
2012-07-19 14:01:32 +01:00
Marek Safar 538c29782f Add new test 2012-06-28 18:15:10 +01:00
Atsushi Eno a882a65ab1 Use non-prefixed namespace output for element when applicable. Fixed bug #5519. 2012-06-07 12:57:31 +09:00
Marek Safar 9215ddf7ad Make XmlWriterSettingsTests .net compatible 2012-06-06 14:52:01 +01:00
Atsushi Eno 22a4d50a47 Make use of GetPrefixOfNamespace() in XElement.ToString(). Fixed bug #3972. 2012-05-14 18:25:56 +09:00
Atsushi Eno cee1998d08 Add Xml declaration even for such document that lacks XDeclaration.
Fixed bug #4850.
2012-05-14 17:24:32 +09:00
Atsushi Eno cac72ba927 XNodeNavigator could be used for a node tree without XDocument, so make it work for such case.
Fixed bug #4690, patch by eb1 sil.org.
2012-05-14 16:31:54 +09:00
Atsushi Eno 76275d015f In XNodeNavigator, do not start text node skip from current node.
Fixed bug #4739, patch by eb1 sil.org.
2012-05-14 16:23:06 +09:00
Duncan Mak 170d0dda1c Remove the element if SetElement sets the value to null. 2012-04-20 17:28:41 -04:00
Atsushi Eno d1761d0700 Fix XLinq decimal value formatting to become invariant. Fixed bug #3634. 2012-03-08 18:25:58 +09:00
Atsushi Eno 40f84f3082 Do not call WriteString() for whitespace XText. 2012-02-07 15:24:03 +09:00
Sebastien Pouliot 6e2273a126 Floating point numbers needs to be encoded using the invariant culture. Fix bug #3137 2012-01-30 18:45:34 -05:00
Atsushi Eno df47a233bb Fix bug #2146 - create snapshot copy of nodes before removal in Remove<T>(). 2012-01-19 19:51:44 +09:00
Atsushi Eno 7b24c6d906 Fix bug #2383 patch by Weeble - in XPathExtensions.Evaluate(), return IEnumerable of the underlying object, not XPathNavigator, for node-set values. 2012-01-19 19:39:08 +09:00
Atsushi Eno d18e065225 Fix bug #2564 - give .NET compatible namespace prefixes for XElement with namespace that XAttribute provides.
This makes XElement.WriteTo() pretty much slower.
2012-01-19 19:21:06 +09:00
Jb Evain 72989552f4 Add test for bug #644242 2011-06-10 11:49:19 +02:00
Atsushi Eno 4c5ed5697c XStreamingElement should be covered in WriteTo(). It's not derived from XNode. 2011-03-26 19:26:14 +09:00
Atsushi Eno c410acbb5b Fixed bug #666872; XElement.Changed and .Changing were not triggered.
Patch almost by Cambell Prince.
2011-01-31 12:09:06 +09:00
Atsushi Eno 090b3d89ab Fix incorrect internal node cleanup in MoveToRoot(). Fixed bug #654433. 2010-12-22 02:08:58 +09:00
Atsushi Eno 9cc9294607 Add tests from XPathNavigatorEvaluateTests. 2010-12-22 01:39:23 +09:00
Atsushi Eno a76bbbe698 Add another bunch of tests from XPathNavigatorTests. 2010-12-22 01:29:52 +09:00
Atsushi Eno e41225ef4c Several fixes in XNodeNavigator to pass XPath tests from System.Xml. 2010-12-22 00:41:09 +09:00
Atsushi Eno 1a5e666592 Support attribute validation. 2010-11-30 00:10:36 +09:00
Atsushi Eno 487f4c0518 Implemented XDocument.Validate(). 2010-11-29 21:39:16 +09:00
Atsushi Eno 7d8ea89149 2010-05-28 Atsushi Enomoto <[email protected]>
* System.Xml.Linq_test.dll.sources :
	  add System.Xml.Schema/ExtensionsTest.cs.

	* ExtensionsTest.cs :
	  New tests (not working yet), by Stefan Prutianu.


svn path=/trunk/mcs/; revision=158106
2010-05-28 11:43:33 +00:00
Jonathan Pobst 544f0c3cc1 2010-04-23 Jonathan Pobst <[email protected]>
* XAttributeTest.cs, XElementTest.cs: Try to standardize DST usage
	to fix failing tests in buildbot.

svn path=/trunk/mcs/; revision=156031
2010-04-23 19:57:40 +00:00
Atsushi Eno 7a4779f90d 2010-04-21 Atsushi Enomoto <[email protected]>
* XDocument.cs : don't prohibit DTD.
	* XNodeNavigator.cs : do not return true in MoveToFirstChild()
	  when there is no child node. Fixed bug #594877.

	* XNodeNavigatorTest.cs : added test for bug #594877. Enable and fix
	  tests that were commented out.


svn path=/trunk/mcs/; revision=155854
2010-04-21 08:41:54 +00:00
Atsushi Eno ab4534658e 2010-04-02 Atsushi Enomoto <[email protected]>
* XContainer.cs : create snapshot copy first before removal of nodes.
	  Fixed bug #592435.

	* XElementTest.cs : added test for bug #592435.


svn path=/trunk/mcs/; revision=154729
2010-04-02 15:57:48 +00:00
Atsushi Eno e1cad400ae 2010-01-25 Atsushi Enomoto <[email protected]>
Parse float and TimeSpan max/min values correctly.
Patch by Tiaan Geldenhuys.

svn path=/trunk/mcs/; revision=150102
2010-01-25 05:08:29 +00:00
Atsushi Eno de51c1e266 2010-01-15 Atsushi Enomoto <[email protected]>
* XElementTest.cs, XAttributeTest.cs : add another set of extensive
	  tests by Tiaan Geldenhuys.


svn path=/trunk/mcs/; revision=149620
2010-01-15 10:55:42 +00:00