Marek Safar
2e3c4398a9
[corlib] Default to fast Span<T> ( #9204 )
2018-07-16 22:46:08 +02:00
Alexander Köplinger
5ef930b5f8
[bcl] Build some assemblies with -warnaserror ( #5295 )
...
* [bcl] Build some assemblies with -warnaserror
This ensures that we keep the build warning free.
We'll only opt-in a few assemblies that already have zero warnings.
We also only apply this when using csc as mcs might raise different warnings.
For now just opt-in assemblies in the net_4_x profile.
2017-11-24 14:05:39 +01:00
Chris Hamons
bb0564ff3c
Mono BCL test fixes so XM can run them ( #4210 )
2017-01-10 16:59:08 -06:00
Marek Safar
ba51c60b57
[system.xml] Enable more tests
2016-11-10 18:43:14 +01:00
Alexander Köplinger
fbf1acd698
[System.Xml] Fix embedded assembly name in XmlCodeExporterTests
...
nunitlite doesn't run the test in a separate AppDomain so we get the name of the console host.
2016-10-29 14:09:38 +02:00
Marek Safar
d19e5c42a5
[System.Xml] Update supported time formats for mobile version of XML deserializer. Fixes #42843
2016-10-14 09:10:17 +02:00
Marek Safar
398675d21a
[System.Xml] Enable more tests
2016-10-14 09:10:17 +02:00
Niklas Therning
bf8fc72e1b
Fixes line ending issue in XmlReflectionImporterTests.Bug594490_SerializationOfXmlLangAttribute
...
This test is sensitive to the line ending mode used by git. When LF is used by
git (which is what Cygwin's git defaults to) this test fails on Windows since
CRLF will be used as line ending in the serialized XML. This patch changes the
test to use Environment.NewLine explicitly in the expected string.
2016-09-20 16:42:24 +02:00
Marek Safar
b6a30059db
[bcl] Update Reference Source to .NET Framework 4.6.2
2016-08-09 18:07:14 +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
Marcos Henrich
e58fe58ef1
[System.Xml] Test sub class serialization on lists
...
Covers #36829
2016-01-11 18:03:43 +00:00
Marek Safar
aac0b374df
[system.xml] One more mobile serialization incompatibility
2015-05-20 20:32:23 +02:00
Marek Safar
7215f95d58
[bcl] Mobile profiles fixes
2015-05-20 12:56:36 +02:00
Marek Safar
401a35cd69
[system.xml] Serialization from reference sources for desktop
2015-05-13 18:47:07 +02:00
Atsushi Eno
ddca46d22b
Revert "[system.xml] Serialization from reference sources for desktop"
...
This reverts commit 6ae517ea65 .
2015-05-12 14:42:19 +08:00
Marek Safar
6ae517ea65
[system.xml] Serialization from reference sources for desktop
2015-05-11 15:37:01 +02:00
Marek Safar
9faaa72407
[system.xml] Update failing test
2015-04-16 00:08:01 +02:00
Dave Curylo
bae8fad714
Fix XmlSerializationTest again.
2015-04-02 10:51:31 -04:00
Dave Curylo
389008df93
Corrects error in XmlSerializerTests.
2015-04-02 10:38:33 -04:00
Dave Curylo
c58f019266
XmlSerializer should set *non* readonly {V}Specified fields
...
Addresses an oversight in PR 1257 that caused {V}Specified fields to not be set during XML deserialization in some circumstances.
Adds test for optional value serialization round trip
2015-04-01 21:56:49 -04:00
Alexander Köplinger
ee307ef1e5
Fix the build broken in 40ba1978bc
2015-03-10 11:53:17 +01:00
jason_naylor
60ef531176
Fix for the XMLSerializer bug 18558
...
* Find the type map element that is the most-specific to the
object in question, not the first type it is an instance of
Change-Id: I1867e790bf9f377ce0ae02871f4561b760e27624
2015-03-04 10:25:37 -06:00
jason_naylor
6b74a2814f
Test to reveal defect in XmlSerializer (Bug 18558)
...
Given the test data in this patch the wrong element name
is used when serializing TestSerializeSecondType
Change-Id: I8aff732dfd22f4f654fb42f2d3b987d7ce58d600
2015-03-04 10:25:12 -06:00
Atsushi Eno
3c4c9e5759
[Sys.Xml] swap xmlns:xsd and xmlns:xsi in serialized xml to remove "regression".
...
The order of those namespaces are insignificant, and the latest
combination of mono corlib (partly referencesource-d) and sys.xml
(referencesource except for XmlSerializer) caused this implementation
glitch.
2015-03-02 11:36:40 +08:00
Alex Rønne Petersen
43a0088f3f
Remove some leftover old 1.x, 2.x, 3.x profile ifdefs.
...
We no longer support these profiles so these code paths are dead.
2015-02-03 03:41:14 +01:00
Alexander Köplinger
d4d7374efc
[bcl] Remove ONLY_1_1 defines from class libs
...
This is not used anymore.
2015-01-21 17:18:30 +01: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
007413298d
Test Xml serialization of a property with attribute XmlText.
...
The tested property has a default value that is not null.
Covers 18908.
2014-09-26 10:31:51 +01:00
Marcos Henrich
8790297c85
Test xml serialization of nullable array items. Covers #19012 .
2014-09-15 16:55:31 +01:00
Marcos Henrich
85650c7528
Test serialization wen class has method bool ShouldSerialize<T>().
...
.NET throws an exception but it should have no effect on the serialization.
2014-09-15 13:02:00 +01:00
Marcos Henrich
17ad50a165
Added test for optional {V}Specified and ShouldSerialize{V}.
...
{V}Specified is a property or field and ShouldSerialize{V} is a method that can be set to false if we do not want to serialize an attribute with name {V}.
2014-09-15 13:02:00 +01:00
Marcos Henrich
f008d4afb6
Test XmlSerialization of element that requires implicit conversion.
...
Covers #20403 .
2014-09-10 16:30:03 +01:00
Zoltan Varga
03aee949f1
Merge pull request #1200 from akoeplinger/remove-jvm
...
[Cleanup] Remove TARGET_JVM
2014-08-28 19:17:43 -04:00
Marcos Henrich
5df652e7d2
Test SerializationCodeGenerator.
...
XmlSerializerTests was mostly testing XmlSerializationReaderInterpreter and XmlSerializationWriterInterpreter.
XmlSerializerGeneratorTests forces the usage of SerializationCodeGenerator while running XmlSerializerTests.
2014-08-22 02:56:05 +08:00
Marcos Henrich
dd6aca8621
Tests serialization of XmlNode field with attribute XmlAnyElement.
...
Covers #3211 .
2014-08-22 02:42:19 +08:00
Marcos Henrich
2c5f30d7bd
Added test BaseClassWithoutParameterlessConstructor.
...
Covers #6913
2014-08-18 14:08:02 +01:00
Marcos Henrich
6c5ea03852
Test XmlSerialization of class with XmlSchemaProvider with IsAny.
...
Covers #11916 .
2014-08-18 11:40:58 +01:00
Alexander Köplinger
48e112d652
[Cleanup] Removed TARGET_JVM
...
It was once part of a special Java target profile, but this is no longer used today.
2014-08-08 03:28:34 +02:00
Chris Webb
1a3ec8c3b3
Fixed issue related to fully qualified namespaces being used for XmlEnumAttribute values.
2014-08-07 06:15:55 +00:00
Alexis Christoforides
94b523275e
[XML] Added unit test for multiple XMLElement attributes on arrays & ArrayLists
2014-04-08 18:05:46 -04:00
Alistair Bush
eaa5a184ca
Add test to ensure using concrete List as readonly property still serializes
...
This change is released under the MIT license.
2014-03-09 01:12:06 +13:00
Alistair Bush
f3296a1559
When a read only property and the type is an interface we can't serialize the type.
...
This change is released under the MIT license.
2014-03-09 01:05:24 +13:00
Eberhard Beilharz
c0ef1fcb02
[Sys.Xml] Add unit test for Novell bug #594490
...
The unit test demonstrates the problem of serializing the
xml:lang attribute.
2014-02-27 15:57:57 +01:00
Marek Safar
31cab6a76d
Fixes build
2013-11-29 13:51:02 +01:00
Sebastien Pouliot
c3b782f4ec
Do not assume the unit tests can write in the application directory (e.g. iOS devices). Use the temporary directory and open files in read-only
2013-03-18 17:38:28 -04: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
Lluis Sanchez
0c2e8c9455
Add some unit tests for bug 9193
2013-01-09 13:43:56 +01:00
Lluis Sanchez
3a6c0cf166
Add tests for bug #8468
...
Conflicts:
mcs/class/System.XML/Test/System.Xml.Serialization/DeserializeTests.cs
2012-11-19 21:21:03 +01:00