15 Commits
Author SHA1 Message Date
Alexander Köplinger 6caf00b09c [bcl] Remove AssertExtensions helper classes (#5828)
* [bcl] Remove AssertExtensions helper classes

Since we're on nunitlite now we can use the proper `Assert.Throws<>()`
instead and remove the helper class (which we actually duplicated!)
2017-10-19 12:38:33 +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
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
Sebastien Pouliot fa6625a8e7 Fix random unit test failures on the bots [#12493] 2013-05-31 15:44:39 -04:00
Sebastien Pouliot bc1786b120 Fix randomly failing unit test
* MachineKeySectionUtilsTest.cs: Do not assume xor will change a byte
2010-11-29 22:21:52 -05:00
Sebastien Pouliot 21d2c6aedb A few moves/changes following previous patch review
* Makefile: Compile tests with TEST defined (to include System.Web.Util.
MachineKeySectionUtils unit tests)
* System.Web.dll.sources: Move MachineKeySectionUtils.cs from System.
Web.Configuration_2.0 to System.Web.Util
* System.Web_test.dll.sources: Move MachineKeySectionUtilsTest.cs from
System.Web.Configuration_2.0 to System.Web.Util

* System.Web.Configuration_2.0/MachineKeySection.cs: Adjust using
clauses. Uncomment some code. Fix TripleDES versus 3DES for Validation
under NET_4_0. Remove 'private' on fields/methods.
* System.Web.Handlers/AssemblyResourceLoader.cs: Adjust using clauses
* System.Web.Security/MembershipHelper.cs: Adjust using clauses
* System.Web.Security/RolePrincipal.cs: Adjust using clauses
* System.Web.SessionState_2.0/SessionId.cs: Adjust using clauses
* System.Web.UI/LosFormatter.cs: Adjust using clauses.
* System.Web.Util/MachineKeySectionUtils.cs: Moved from System.Web.
Configuration_2.0. Rename namespace and remove 'internal' on type
declaration

* Test/System.Web.Util/MachineKeySectionUtilsTest.cs: Moved from Test/
System.Web.Configuration/MachineKeySectionTest.cs. Add test case for
TripleDES versus 3DES
2010-10-12 11:38:48 -04:00
Marek Habersack f8d637595c 2010-06-01 Marek Habersack <[email protected]>
* HttpUtility.cs: moved chunks of code to the new
	System.Web.Util.HttpEncoder class.

	* HttpResponseHeader.cs: encode header names and values using
	HttpEncoder.

	* HttpRequest.cs: added internal method Validate, to validate the
	request in 4.0 profile.

	* HttpHeaderCollection.cs: added. A helper class to encode header
	names/values on add.

	* HttpApplication.cs: Pipeline () validates request by calling
	HttpRequest.Validate in the 4.0 profile.

2010-06-01  Marek Habersack  <[email protected]>

	* HttpEncoder.cs: added. A 4.0 type but also used in 2.0 profile,
	internally.

2010-06-01  Marek Habersack  <[email protected]>

	* HttpRuntimeSection.cs: added 4.0 properties
	MaxQueryLengthString, MaxUrlLength, EncoderType and
	RelaxedUrlToFileSystemMapping.

svn path=/trunk/mcs/; revision=158300
2010-06-01 19:39:19 +00:00
Marek Habersack c6c642eec3 commit 9405fa168b1255c51bb31ef17511c05593b08caa
Author: Marek Habersack <[email protected]>
Date:   Sat Mar 6 03:37:53 2010 +0100

    2010-03-06  Marek Habersack  <[email protected]>

    	* CompilerCollection.cs: in the 4.0 profile, the latest C#
    	standard is the compiler's default.

    2010-03-06  Marek Habersack  <[email protected]>

    	* CSharpCodeCompiler.cs: in the 4.0 profile, the latest C#
    	standard is the default one.

    2010-03-06  Marek Habersack  <[email protected]>

    	* RequestValidatorTestGenerated.cs: added

    	* RequestValidator.cs: added

    2010-03-06  Marek Habersack  <[email protected]>

    	* TestWorkerRequest.cs: added overloads of GetRawUrl and
    	GetUriPath which make sure that the returned paths do not contain
    	more than one leading / character.

    	* TestRunItem.cs: added new TestRunData property - to contain
    	per-appdomain test run data.

    	* TestCallback.cs: added a TestRunItem parameter.

    	* StandaloneTest.cs: runner object is created for each test item
    	now.
    	Added test progress feedback.

    	* ITestRunner.cs: added two properties, TestRunData - to return
    	collected test result data, if any, and Domain which returns the
    	current AppDomain.

    2010-03-06  Marek Habersack  <[email protected]>

    	* RequestValidatorTest.cs: added

    2010-03-06  Marek Habersack  <[email protected]>

    	* HttpRequest.cs: cache RawUrl value.
    	Added new internal property, PathNoValidation, which returns
    	request path without validating it.
    	Implemented 4.0 extensible validation.

    	* HttpApplication.cs: Pipeline () validates the request path, if
    	new validation mode is enabled, before doing anything else.
    	Added a generic LoadType overload which checks whether the loaded
    	type, if any, derives from the type specified in the method's
    	specialization.

    2010-03-06  Marek Habersack  <[email protected]>

    	* RequestValidator.cs: added

    	* RequestValidationSource.cs: added

    2010-03-06  Marek Habersack  <[email protected]>

    	* WebConfigurationManager.cs: do not use Request.Path - it may
    	fail because of invalid web.config file, use
    	Request.PathNoValidation instead.

    	* VersionConverter.cs: added

    	* PropertyHelper.cs: added a Version converter helper.

    	* HttpRuntimeSection.cs: added 4.0 properties -
    	RequestPathInvalidCharacters, RequestValidationType and
    	RequestValidationMode.

svn path=/trunk/mcs/; revision=153172
2010-03-06 02:48:31 +00:00
Raja R Harinath a0e5f81af7 * UrlUtilsTest.cs: Use SystemWebTestShim.UriUtils.
svn path=/trunk/mcs/; revision=137442
2009-07-06 19:14:48 +00:00
Marek Habersack c2b252087c 2008-06-16 Marek Habersack <[email protected]>
* UrlUtils.cs: optimize string usage (do not compare against "").

2008-06-16  Marek Habersack  <[email protected]>

	* UrlUtilsTest.cs: those tests can be ran only under the 2.0
	runtime (System.Web.Util.UrlUtils is an internal class)

svn path=/trunk/mcs/; revision=105899
2008-06-16 12:36:56 +00:00
Noam Lampert 11db989266 UrlUtils.cs: Fixed some bugs in Canonize method. Add several tests
svn path=/trunk/mcs/; revision=105894
2008-06-16 11:52:01 +00:00
Raja R Harinath 9bdec12456 Kill all executable flags on *.cs and ChangeLog files.
AKA: fun with find(1)+xargs(1)
AKA: find . -name \*.cs -and -perm /a+x | xargs svk propdel svn:executable

svn path=/trunk/mcs/; revision=66131
2006-09-30 18:29:13 +00:00
Sebastien Pouliot 37b0f301d4 2005-09-11 Sebastien Pouliot <[email protected]>
* TransactionsCas.cs: New. CAS unit for Transactions.
	* WorkItemCas.cs: New. CAS unit for Transactions.

svn path=/trunk/mcs/; revision=49905
2005-09-11 14:03:20 +00:00