66 Commits
Author SHA1 Message Date
EgorBo f248a4b43a Fix 6306 Disposing RSA objects obtained with GetRSAPublicKey/GetRSAPrivateKey makes keys unusable. 2018-04-12 12:11:58 +02:00
Alexander Köplinger 1e29ed0d7e [System.Core] Remove duplicated test classes (#5829)
These tests classes are already included in the corlib test assembly.
Having them duplicated in System.Core causes issues in XA because
both test assemblies are in the same process.

To solve this we introduce abstract *TestBase classes that we can
share between the test assemblies and only mark the concrete test
class implementations with [TestFixture]
2017-10-19 16:34:35 +02:00
Marek Safar 9d5de96b0f [System.Core] SLE from CoreFX including interpreter 2016-12-19 14:19:30 +01:00
Marek Safar 03c62b9023 Move TimeZoneInfo tests to corlib 2015-02-04 19:09:14 +01:00
Sasha Kotlyar a66732c039 [TimeZoneInfo] Fix issue with some floating DST transition times creating invalid DateTime values, and implement ToSerializedString and FromSerializedString.
This change is released under the MIT license.
2014-08-03 15:25:43 -04:00
Sebastien Pouliot 6597227b23 Aes[Managed|CryptoServiceProvider] have a few more differences with RjindaelManaged. Narrow that gap a bit. 2013-01-03 15:12:05 -05:00
James Bellinger 490a86b6ec Implemented PipeSecurity. GetAccessControl, SetAccessControl, and ACL-containing constructor overrides now work on pipes.
On another note, after writing a test I discovered Asynchronous pipes appear to be completely broken on Win32.
The class does not correctly handle overlapped I/O. This patch doesn't fix that.

One other fix in this patch, the DllImports for Win32 pipes did not have SetLastError set.
So, they were unable to return a meaningful error in the event of failure. This is now fixed, and
UnauthorizedAccessException correctly throws for pipe connects denied by ACL (necessary for PipeSecurity test).
2012-07-08 15:13:51 -04:00
Jérémie Laval 9539c3e471 Add TaskExtensions class and Unwrap extension methods 2010-11-03 11:51:04 +00:00
Jérémie Laval f035f2879f 2010-04-15 Jérémie Laval <[email protected]>
In class/System.Core/:
   * System.Core_test.dll.sources: Add PLinq unit tests

In class/System.Core/Test/System.Linq/:
   * ParallelEnumerableTests.cs:
   * ParallelTestHelper.cs: Add PLinq unit tests

svn path=/trunk/mcs/; revision=155534
2010-04-15 19:02:02 +00:00
Marek Safar 43a9229c0d 2009-12-02 Marek Safar <[email protected]>
* DynamicAttribute.cs: Add arguments check.


svn path=/trunk/mcs/; revision=147438
2009-12-02 14:40:44 +00:00
Zoltan Varga 0a79353e58 2009-08-30 Zoltan Varga <[email protected]>
* System.Core_test.dll.sources: Add MemoryMappedFileTest.cs.

svn path=/trunk/mcs/; revision=140933
2009-08-29 23:59:34 +00:00
Jb Evain 99e45d9f2c add tests
svn path=/trunk/mcs/; revision=124207
2009-01-22 14:45:18 +00:00
Marek Safar 2101a3d1e7 2009-01-18 Marek Safar <[email protected]>
* ReaderWriterLockSlim.cs: Implemented all properties.


svn path=/trunk/mcs/; revision=123729
2009-01-18 13:24:26 +00:00
Marek Safar c9626aacb9 set svn:eol-style
svn path=/trunk/mcs/; revision=123521
2009-01-15 19:05:02 +00:00
Jb Evain 446d54ef79 add new tests
svn path=/trunk/mcs/; revision=123496
2009-01-15 16:45:22 +00:00
Sebastien Pouliot 571aee55d7 2008-08-05 Sebastien Pouliot <[email protected]>
* System.Core.dll.sources: Add new files for crypto.
	* System.Core_test.dll.sources: Add crypto unit tests.


svn path=/trunk/mcs/; revision=109711
2008-08-05 20:45:26 +00:00
Jb Evain a96faace4f move NotEqual tests to their own file
svn path=/trunk/mcs/; revision=104392
2008-05-29 11:57:41 +00:00
Roei Erez 6561ede795 Add implementation for AsQueryable.
svn path=/trunk/mcs/; revision=103265
2008-05-15 12:36:13 +00:00
Jb Evain 32a1749e2f update
svn path=/trunk/mcs/; revision=98690
2008-03-20 20:04:15 +00:00
Jb Evain e4586cf00e merge Call tests
svn path=/trunk/mcs/; revision=96547
2008-02-25 14:12:38 +00:00
Jb Evain 6ac8ade781 we pass MemberBind tests
svn path=/trunk/mcs/; revision=96294
2008-02-20 19:25:16 +00:00
Jb Evain 7678cb614c we pass ListInit tests
svn path=/trunk/mcs/; revision=96273
2008-02-20 17:10:23 +00:00
Jb Evain dae5bec577 we pass MemberInit tests
svn path=/trunk/mcs/; revision=96194
2008-02-19 21:44:19 +00:00
Jb Evain 3778a0303b we pass Invoke tests
svn path=/trunk/mcs/; revision=95258
2008-02-08 14:30:46 +00:00
Olivier Dufour 26f08ed6f6 2008-02-01 Olivier Dufour <[email protected]>
* ExpressionTest_ListBind.cs:Add test for ListBind

svn path=/trunk/mcs/; revision=94574
2008-02-01 21:19:34 +00:00
Olivier Dufour d183a6c7e5 2008-02-01 Olivier Dufour <[email protected]>
* ExpressionTest_ElementInit.cs:Add test for ElementInit

svn path=/trunk/mcs/; revision=94532
2008-02-01 17:34:29 +00:00
Jb Evain be7d5abcd6 we pass AndAlso
svn path=/trunk/mcs/; revision=94263
2008-01-29 16:30:45 +00:00
Jb Evain e8ec46e9ba we pass some of those
svn path=/trunk/mcs/; revision=94242
2008-01-29 12:51:28 +00:00
Jb Evain 0f183e50da we pass New
svn path=/trunk/mcs/; revision=94191
2008-01-28 23:02:38 +00:00
Jb Evain 758ef14129 we pass Bind
svn path=/trunk/mcs/; revision=93908
2008-01-25 15:23:00 +00:00
Jb Evain 8d1d560ef5 we pass PropertyOrField
svn path=/trunk/mcs/; revision=93902
2008-01-25 14:39:14 +00:00
Jb Evain 774dd46318 we pass ExclusiveOr tests
svn path=/trunk/mcs/; revision=93898
2008-01-25 14:21:32 +00:00
Jb Evain 00577a37fc we pass Field and Property
svn path=/trunk/mcs/; revision=93822
2008-01-24 17:55:58 +00:00
Miguel de Icaza 0a6c4c0470 Shut up all those warnings
svn path=/trunk/mcs/; revision=93597
2008-01-22 22:50:33 +00:00
Jb Evain 416fcfe2d0 we pass NewArrayBounds and NewArrayList
svn path=/trunk/mcs/; revision=93529
2008-01-22 14:20:18 +00:00
Jb Evain 3a40c9e3a5 enable new Enumerable tests
svn path=/trunk/mcs/; revision=93485
2008-01-22 08:53:19 +00:00
Miguel de Icaza b9b9a664e0 2008-01-22 Miguel de Icaza <[email protected]>
* BinaryExpression.cs (EmitCoalesce): Add support for emitting
	code for Coalesce.

	TODO: this does not use the "Conversion" Lambda, which am not sure
	who generates this or what it is used for.

	(EmitLogical): Fix a couple of bugs in AndAlso, OrElse.	

	* Expression.cs: Add support for Coalesce.
	(BinaryCoreCheck): Move more checking here, instead of the helper
	routines, will remove them next.
	
	* LambdaExpression.cs (Compile): Create the delegate last, so we
	manage to save the assembly while debugging in case of error


svn path=/trunk/mcs/; revision=93480
2008-01-22 07:01:58 +00:00
Jb Evain dd5db0479c oh, they're already in :)
svn path=/trunk/mcs/; revision=93392
2008-01-21 14:19:45 +00:00
Jb Evain 71df001e74 remove until Miguel check them in
svn path=/trunk/mcs/; revision=93390
2008-01-21 14:18:41 +00:00
Miguel de Icaza 1affd8bf07 2008-01-20 Miguel de Icaza <[email protected]>
Introduce support for Nullable arguments, no code is generated for
	these yet, its only tests + node creation behavior at this point.
	
	* Expression.cs (BinaryCoreCheck): Do not allow "int?" and "int"
	as operators, they must both be nullable.

	NullableTypes in the arguments are transformed into the underlying
	values when doing the method validation.  


svn path=/trunk/mcs/; revision=93368
2008-01-21 00:45:16 +00:00
Jb Evain 8573818b07 we pass lessthan and greatherthan tests
svn path=/trunk/mcs/; revision=93265
2008-01-18 15:07:18 +00:00
Jb Evain cbc693d054 we pass not, negate and unaryplus tests
svn path=/trunk/mcs/; revision=93257
2008-01-18 14:18:29 +00:00
Miguel de Icaza 488a45b5a1 2008-01-17 Miguel de Icaza <[email protected]>
Beginning of code generation framework for Linq.Expressions.
	Some code was borrowed by from the C# compiler
	
	* Expression_T.cs: Fill in the blanks.
	
	* LambdaExpression.cs: Validation of parameters mostly, a tiny bit
	of codegen.

	* ConstantExpression.cs: Mostly done, need to write tests for
	non-fundamental types and other ValueType initializations. 



svn path=/trunk/mcs/; revision=93222
2008-01-18 00:24:01 +00:00
Jb Evain 2057818b55 we pass ArrayIndex tests
svn path=/trunk/mcs/; revision=93149
2008-01-17 13:04:41 +00:00
Miguel de Icaza c4f9184d02 2008-01-16 Miguel de Icaza <[email protected]>
* Expression.cs: Add support for user-defined operators. 

	Put back various binary operator tests.


svn path=/trunk/mcs/; revision=93130
2008-01-17 04:03:31 +00:00
Jb Evain b06078d923 add CallWithExpression tests
svn path=/trunk/mcs/; revision=92991
2008-01-15 21:58:28 +00:00
Jb Evain 62829517a3 condition tests passes
svn path=/trunk/mcs/; revision=92952
2008-01-15 14:21:58 +00:00
Miguel de Icaza 68b16f4347 2008-01-14 Miguel de Icaza <[email protected]>
* Expression.cs: Bring back the (most) of binary operators.  Added
	type checking as well and reorganized the source file by topic
	instead of alphabetical sorting.


svn path=/trunk/mcs/; revision=92917
2008-01-15 00:19:41 +00:00
Jb Evain 552794ef0c we pass ArrayLength
svn path=/trunk/mcs/; revision=92852
2008-01-14 12:13:57 +00:00
Jb Evain 9bcffe7034 we pass TypeAs
svn path=/trunk/mcs/; revision=92850
2008-01-14 12:04:32 +00:00