177 Commits
Author SHA1 Message Date
Martin Baulig 22c6ed3f1c Add conditionals allowing some calenders to be disabled. (#13730)
Add `GlobalizationMode.Invariant` conditionals to some calendar code.

This allows the Japanese, Taiwan and Hebrew calendars to be disabled.
2019-04-10 13:44:11 +02:00
Alexander Köplinger 77cf4cc4f8 [tests] Remove MONOMAC ifdef from BCL tests (#13694)
It was set by xamarin-macios when they were still taking the raw .cs source files
but since we switched to prebuilt binaries we need to replace it with
some define we're actually setting in Mono.

Most cases can be replaced by just XAMMAC_4_5 since MOBILE is defined on the xammac profile.
2019-03-27 20:21:48 +01:00
Alexander Köplinger a2abcc9a2f [System] Skip DefaultValueAttributeTest.Bug_12362() on xammac 4.5 too 2019-01-31 16:57:25 +01:00
Alexander Köplinger ee8e8288a6 [System] Fix test compilation on Android 2019-01-18 22:35:25 +01:00
Maxim Lipnin 1c4a35efc3 Add TypeConverter fallback to DefaultValueAttribute (#12412)
Requires https://github.com/mono/corefx/pull/235.

Fixes https://github.com/mono/mono/issues/12362.
2019-01-18 15:22:58 +01:00
Marek Safar e410a74674 [System] Update mobile tests to reflect missing DesignerAttribute
Fixes #8407
2018-07-19 09:30:51 +02:00
Alexander Köplinger 30c51f88a8 [System] Temporarily disable failing TypeDescriptorTests on FullAOT (#8408)
See https://github.com/mono/mono/issues/8407
2018-04-23 15:55:47 +02:00
Egor Bogatov 09de0b9e1b [System] ComponentModel and System.Net from corefx (#7948)
* ComponentModel from corefx

* System.Net.Mail from corefx

* update SR.cs

* fix build error

* fix tests

* undo run-test-default.sh change

* update corefx

* fix failing tests

* hide DesignerAttribute on mobile profiles

* Bump API snapshot submodule
2018-04-20 22:04:39 -07:00
Rolf Bjarne Kvinge 6ed4adc2d8 [System][Test] Only Xamarin.iOS has a synchronization context by default.
This shows up when Xamarin.Mac tests start defining XAMMAC [1]

[1]: https://github.com/xamarin/xamarin-macios/pull/3034
2017-11-27 14:25:56 +01:00
Alexander Köplinger b3e3e4cc40 [System] Don't use DateTime.Now for measuring elapsed time
Use Stopwatch or DateTime.UtcNow instead which aren't affected
by things like daylight-saving time
2017-07-02 23:31:34 +02:00
Chris Hamons 4d1e45d76a AppleTls Support (#4470) 2017-03-22 19:15:02 +01:00
Alexander Köplinger 16b933f883 [System] Fix AsyncOperationManager test that fails on the testing_full_aot profile
It seems the first assert only applies to XI/XM, so use those
in the condition instead of the profiles where it doesn't apply.
2017-01-31 20:23:00 +01:00
Henric Müller 2f6630d46a Fixing AsyncOperationManagerTest test for winaot profile 2017-01-25 16:34:32 +01:00
Chris Hamons bb0564ff3c Mono BCL test fixes so XM can run them (#4210) 2017-01-10 16:59:08 -06:00
Ludovic Henry 249daf43de [mcs] Replace NET_2_1 by MOBILE
NET_2_1 is also defined whenever we define MOBILE, so they have the same effect. Silverlight was 2.1 but it's been dead for a while now, and we do not even support it.
2016-08-18 16:34:36 +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 98cf04084a [bcl] Remove NET_4_0 defines from class libs
NET_4_0 is always defined now, so the ifdefs are redundant.
I verified the libs are exactly the same after this change, so this is effectively a no-op.
2015-07-26 15:01:49 +02:00
Marek Habersack 4a62b23240 [tests] Xamarin.Android has the desktop behavior 2015-07-15 20:45:13 +02:00
Marek Safar 919684c7af [system] Don't replace CategoryAttribute value with key when not found. Fixes #28331 2015-03-23 17:44:02 +01:00
Marek Safar d9dc2f64b0 [system] Update wrong test 2015-03-16 20:09:48 +01:00
Marek Safar 72eb18f84d [system] More linker friendly tests 2015-02-12 17:00:34 +01:00
Marek Safar f97001e2c8 [system] updates fixed test 2015-02-11 10:47:54 +01:00
Sebastien Pouliot 375b749fca [tests] Fix TypeDescriptorTests compilation when NUnitLite is used 2015-02-06 09:37:21 -05:00
Marek Safar 96eca3b925 [System] More TypeDescriptor tests 2015-02-04 15:49:41 +01:00
Marek Safar aa4ba602fc [corlib] DateTime from reference sources 2015-02-04 15:36:51 +01:00
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
Marek Safar 554ee2294d Fix DateTimeConverter test 2014-12-11 13:40:29 +01:00
Marek Safar 767b1570f2 [System] Use ComponentModel from reference sources 2014-12-09 14:30:40 +01:00
Sergey Odinokov 4a8e13a99b Add DateTimeOffsetConverter to the default converters list.
This is the fix for https://bugzilla.xamarin.com/show_bug.cgi?id=25158

Current implementation does not contain the DateTimeOffsetConverter
in the list of default converters. This cause NotSupportedException
to be thrown when trying to serialize/deserialize DateTimeOffset
values to/from strings.

In .NET Framework implementation this class is added to such a list.
2014-12-08 21:59:00 +03:00
Miguel de Icaza c6ab899595 [System] Fix most warnings on the System test suite 2014-09-24 10:43:46 -04: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
Alexis Christoforides 5bdff7c7e9 Added test for bug #20672 (fixed in aeab5b5902) 2014-06-19 19:49:33 -04:00
scottmcarthur 7a5ab1d8c9 Test for bug 16902
Check insert of null item, in a BindingList<T> where T implements INotifyPropertyChanged does not cause NullReferenceException.
2013-12-22 18:08:16 +00:00
Zoltan Varga c94730c32f Disable some System tests which are expected to fail in the mobile profile. 2013-04-11 16:37:02 +02:00
Sebastien Pouliot 32c4b50508 Ensure the linker does not remove some types needed (thru reflection) for some test cases to work 2013-03-19 14:07:17 -04:00
Marek Safar 42d7bdbea4 Remove dependency on generated file 2013-03-12 15:43:13 +01:00
Marek Safar f0ad346fb6 Mobile tests update 2013-02-22 21:41:19 +01:00
Steven Robbins 7fcbd002a8 Added test for In32 IsValid 2013-02-12 14:59:50 +00:00
Sebastien Pouliot 0dd29ed721 Add test case from bug #8366 (it was fixed in master, not in 2-10) 2012-11-14 11:24:59 -05:00
Marek Safar e9a5306d5d Implement TypeConverter.ConvertTo cultureInfo support. Fixes #6322 2012-08-09 10:03:36 +01:00
Eberhard Beilharz c2ffae4732 Fix failing tests
Change-Id: Ia0969271d3bf7bdfd78fe17160e09dcb1c278eda
2012-05-21 15:16:27 +01:00
Marek Safar eadfd5181e Convert old unit tests 2012-04-16 17:36:00 +01:00
Neil Stalker e2b9054399 en-US culture returns PM not p.m. in both .NET and Mono 2012-03-24 16:30:47 +00:00
Atsushi Eno c838b12b2e Remove obsolete nunit syntax from tests except for Assertion usage. 2011-04-06 20:01:27 +09:00
Carlos Alberto Cortez fc01f5d598 Add a new test for TypeDescriptor.InterfaceType.
* TypeDescriptorTests.cs: New test for InterfaceType.
2010-09-14 10:14:34 +02:00
Carlos Alberto Cortez 949d7305bb Remove the NET_2_0 and ONLY_1_1 directives from TypeDescriptorTests.cs
* TypeDescriptorTests.cs: Remove the NET_2_0 and ONLY_1_1
	directives, as we don't need them anymore.
2010-09-14 10:14:33 +02:00
Carlos Alberto Cortez 3d382ac842 Add new TypeDescriptionProviderTest.cs test file.
* TypeDescriptionProviderTest.cs: New test file.
2010-09-14 10:14:33 +02:00
Carlos Alberto Cortez 06921d30c2 Add a test case for DateTimeOffsetConverter converting to InstanceDescriptor.
* DateTimeOffsetConverterTests.cs: New test for conversions to
	InstanceDescriptor.
2010-09-10 04:55:30 +02:00
Carlos Alberto Cortez 9fdb1b7f73 Add new DateTimeOffsetConverterTests.cs test file.
* DateTimeOffsetConverterTests.cs: New file.
2010-09-07 04:48:40 +02:00
Carlos Alberto Cortez 39cd458ad6 New test for CultureInfoConverter.GetCultureName.
* CultureInfoConverterTest.cs: New test for GetCultureName.
2010-09-05 05:53:24 +02:00