98 Commits
Author SHA1 Message Date
Rolf Bjarne Kvinge a60c082cd7 [System.Xml.Linq] Fix namespace conflict with new Xamarin.Mac namespace in test code. (#10164)
macOS 10.14 introduces a Network framework, which means Xamarin.Mac now has a Network namespace.

This conflicts with 'using Network = System.Net':

> mono/mcs/class/System.Xml.Linq/Test/System.Xml.Schema/ExtensionsTest.cs(97,27): error CS0576: Namespace '<global namespace>' contains a definition conflicting with alias 'Network'

so just remove the using and use the full 'System.Net' namespace instead.
2018-08-20 12:07:29 +02:00
Marek Safar 00a8ed722d [System.Xml] Add XElement array handling to serialization interpreter. Fixes #12571 2016-11-10 18:43:14 +01:00
Marcos Henrich 863dc73d19 [bcl] Add NUnitHelper.cs with API not in nunit-lite
NUnitHelper.cs adds CollectionAssert, FileAssert, StringAssert.

Also adds AssertHelper class with methods that are not part of nunitlite
Assert class.
2016-10-29 14:09:33 +02:00
Alexander Köplinger c4a5b6b5c3 [mcs] Remove NET_4_5 ifdef from the source files
It is always set in all profiles that we support so we can remove it.
2016-08-23 15:15:51 +02:00
Alexander Köplinger b03e606287 Remove ChangeLog files from the repo
They weren't updated in the last 6 years and aren't helpful anymore (e.g. by causing unrelated matches during git grep searches).
2016-01-29 19:17:06 +01:00
Alexander Köplinger 6c728b6cc0 [System.Xml.Linq] Reenable a test that was commented out
It works fine now, the underlying mcs bug was fixed long ago.
2015-12-23 02:04:06 +01:00
Eberhard Beilharz 5afea62a8c Unit test that demonstrates Xamarin-29935
Change-Id: I3510a2ccb897e0a0baf03af3a34bb74d6b700e03
2015-05-11 15:31:04 +02:00
Atsushi Eno 51ba090596 [xlinq] add test from bug #18171 (partly). 2015-03-18 04:16:25 +08:00
Atsushi Eno 59267a16c4 [xlinq] add test from bug #14856. 2015-03-17 18:56:10 +08:00
Atsushi Eno cfa8bc07f6 import System.Xml.Linq from referencesource. 2015-03-04 02:40:49 +08:00
Atsushi Eno 77c316c520 [XLinq] fix some "regressions" caused by referencesource switch.
EOLs are platform dependent on referencesource.

Turn NotDotNet into Ignore (as we're also importing buggy implementation).
2015-03-02 11:36:40 +08:00
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
Marcos Henrich 2039c7d499 [System.Xml.Linq] Test XmlSerializer with custom namespace.
Covers #24300.
2014-12-12 19:01:51 +00:00
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