39 Commits
Author SHA1 Message Date
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 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 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
Joerg Rosenkranz f927c83afe Prevent NullReferenceException in case of missing Host
Do not throw a NullReferenceException when Host variable is not set.
Ignore the calls to RegisterObject and UnregisterObject instead.
2014-10-10 16:23:22 +02: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
Marek Habersack 7abe6eb7ff [asp.net] Make web.config path check test case-insensitive 2011-04-13 16:56:37 +02:00
Marek Habersack 85db63d06f 2010-02-18 Marek Habersack <[email protected]>
* HostingEnvironment.cs: removed SetHostingId and added internal
	setters to the SiteName and IsHosted properties.

	* ApplicationManager.cs: CreateHost doesn't have to call set
	HostingEnvironment.IsHosted, it is done in
	ApplicationHost.CreateApplicationHost.

	* ApplicationHost.cs: set the ".appId" item in the new appdomain's
	data, so that HttpRuntime.AppDomainAppId returns a non-null
	value.
	Set HostingEnvironment.{IsHosted, SiteName} in the new appdomain
	instead of the original one.

	All of the above fix bug #578880

2010-02-18  Marek Habersack  <[email protected]>

	* HostingEnvironmentTest.cs: added a test for HostEnvironment
	property values both in hosted and non-hosted environments. Patch
	contributed by Tiaan Geldenhuys <[email protected]>, thanks!

svn path=/trunk/mcs/; revision=151983
2010-02-18 13:29:56 +00:00
Marek Habersack 0dd5890dab 2009-11-19 Marek Habersack <[email protected]>
* LogicalTypeInfo.cs: removed the JsonResult class - it has no use
	and it can break applications (e.g. Umbraco)

2009-11-19  Marek Habersack  <[email protected]>

	* VirtualPathUtility.cs: made Normalize internal

2009-11-19  Marek Habersack  <[email protected]>

	* WebConfigurationHost.cs: IsDefinitionAllowed now normalizes the
	passed configuration path, so that MachineToApplication sections

	* WebConfigurationManager.cs: use an rw lock to protect access to
	sectionCache. This is now necessary as the save handler clears the
	cache.

svn path=/trunk/mcs/; revision=146546
2009-11-19 15:18:34 +00:00
Geoff Norton 9f3c95a9d1 2009-01-07 Geoff Norton <[email protected]>
* ApplicationHostTest.cs: Fix a few case-sensitiviy issues.

svn path=/trunk/mcs/; revision=122624
2009-01-07 07:04:19 +00:00
Gonzalo Paniagua Javier fa15b57cb0 2008-10-31 Gonzalo Paniagua Javier <[email protected]>
* ApplicationHostTest.cs: ignore the CachePath test. We are settig it
	to DynamicBase to make all the temporary and shadow-copied files go
	into the same directory.


svn path=/trunk/mcs/; revision=117535
2008-10-31 04:27:54 +00:00
Marek Habersack c102aaa08b Revert 100737, it's not needed anymore.
svn path=/trunk/mcs/; revision=100756
2008-04-15 18:57:20 +00:00
Marek Habersack aa49e1ebc6 2008-04-15 Marek Habersack <[email protected]>
* ApplicationHostTest.cs: test update for the PrivateBinPath
	change in ApplicationHost (a work-around for an IOMAP bug).

2008-04-15  Marek Habersack  <[email protected]>

	* ApplicationHost.cs: restore Bin;bin to PrivateBinPath, as a
	work-around for an IOMAP bug. Fixes bugs #379890 and #379888

svn path=/trunk/mcs/; revision=100737
2008-04-15 15:53:34 +00:00
Marek Habersack 94dc72ad1d 2008-03-13 Marek Habersack <[email protected]>
* ApplicationHostTest.cs: adjust test for the PrivateBinPath
	change in ApplicationHost.
2008-03-13  Marek Habersack  <[email protected]>

	* HttpApplicationFactory.cs: use HttpApplication.BinDirs to
	create watchers for binary application directories.

	* HttpApplication.cs: 
	Remove the BinDirectories enumerator property, replaced with a
	BinDirectory one returning a string with path to the binary
	directory.
2008-03-13  Marek Habersack  <[email protected]>

	* ApplicationHost.cs: use HttpRuntime.CaseInsensitive when
	checking whether we're running in a case-insensitive environment.
	Revert to the single-bin-dir behavior when setting the
	PrivateBinPath - the directories are sought for in the order given
	by HttpApplication.BinDirs and the first existing directory is set
	as the value of PrivateBinPath. If none of those are found,
	PrivateBinPath defaults to "bin" (and "/app/full/path/bin" in the
	2.0 profile)
2008-03-13  Marek Habersack  <[email protected]>

	* TemplateParser.cs: HttpApplication.BinaryDirectories property no longer
	exists, use HttpApplication.BinDirectory instead.

svn path=/trunk/mcs/; revision=98211
2008-03-13 21:30:12 +00:00
Marek Habersack 33ee579205 2007-11-03 Marek Habersack <[email protected]>
* ApplicationHostTest.cs: adjust ConstructorTest for
	AppDomainSetup.PrivateBinPath changes.
2007-11-03  Marek Habersack  <[email protected]>

	* ApplicationHost.cs: AppDomainSetup.PrivateBinPath is a list of
	full paths on 2.0.
2007-11-03  Marek Habersack  <[email protected]>

	* HttpApplication.cs: removed unused internal PrivateBinPath
	property.

	* HttpRuntime.cs: BinDirectory returns a path that ends with the
	directory separator character.


svn path=/trunk/mcs/; revision=88756
2007-11-02 23:02:36 +00:00
Marek Habersack bbea67463d 2007-08-24 Marek Habersack <[email protected]>
* ApplicationHostTest.cs: use ; as the separator in the
            PrivateBinPath test.

2007-08-24  Marek Habersack  <[email protected]>

            * ApplicationHost.cs: use ; as the separator with PrivateBinPath.


svn path=/trunk/mcs/; revision=84766
2007-08-23 23:27:16 +00:00
Marek Habersack fcc675453f 2007-08-21 Marek Habersack <[email protected]>
* ApplicationHostTest.cs: adjust the test for the PrivateBinPath
        changes.

2007-08-21  Marek Habersack  <[email protected]>

        * ProvidersHelper.cs: use HttpApplication.LoadTypeFromPrivateBin
        to get the provider settings type.

2007-08-21  Marek Habersack  <[email protected]>

        * HttpApplicationFactory.cs: watch for changes in all the
        private binary directories for the current application domain.

        * HttpApplication.cs: turn the PrivateBinPath property into an
        internal enumerable, so that code throughout the assembly can
        iterate over the list of private bin directories configured for
        the application domain.
        Added a new internal method LoadTypeFromPrivateBin, for sharing
        with other parts of the assembly.

2007-08-21  Marek Habersack  <[email protected]>

        * SimpleWebHandlerParser.cs: use HttpApplication.PrivateBinPath
        enumerator when loading or adding assemblies from binary
        directories. Remove unused PrivateBinPath property.

        * ControlBuilder.cs: remove unused PrivateBinPath property.

        * TemplateParser.cs: use HttpApplication.PrivateBinPath when
        adding assemblis and loading types.

2007-08-21  Marek Habersack  <[email protected]>

        * ApplicationHost.cs: AppDomainSetup.PrivateBinPath should contain
        a list of paths relative to AppDomainSetup.ApplicationBase, not a
        full path.
        We no longer check if the bin directories exist, the user can
        create them while the application is running.

2007-08-21  Marek Habersack  <[email protected]>

        * ObjectDataSourceView.cs: get rid of PrivateBinPath property,
        it's unused.

2007-08-21  Marek Habersack  <[email protected]>

        * BuildProvider.cs: use HttpApplication.PrivateBinPath enumerator
        to look up assemblies in the binary path(s).

svn path=/trunk/mcs/; revision=84589
2007-08-21 21:13:54 +00:00
Adar Wesley 219af22475 2007-01-17 Adar Wesley <[email protected]>
* ApplicationHost.cs: tweaking CreateApplicationHost to throw the
        right exceptions so the tests will pass.


svn path=/trunk/mcs/; revision=71179
2007-01-17 10:14:27 +00:00
Igor Zelmanovich 8ae1ec6671 2006-12-19 Igor Zelmanovich <[email protected]>
* ServletWorkerRequest.cs: fixed:
	Path.Combine is used in GetFilePathTranslated to consider 
	platform-depended PathSeparator char.


svn path=/trunk/mcs/; revision=69732
2006-12-19 12:22:19 +00:00
Andrew Skiba 2e3561794c TARGET_JVM
svn path=/trunk/mcs/; revision=67443
2006-11-07 10:26:38 +00:00
Yoni Klain 8ae70a53eb Increase tests' correctness as now they better follow the .NET behavior, and
Cleanup the ondotnet target of the System.Web 2.0 test suite (0 failures), making it an efficient reference point for new tests verification. 

svn path=/trunk/mcs/; revision=67439
2006-11-07 10:02:52 +00:00
Yoni Klain 7a6090166e added a NotWorking category attribute for tests that pass on .NET and fail on mono.
svn path=/trunk/mcs/; revision=67260
2006-11-02 09:11:11 +00:00
Yoni Klain d6560d7b46 Added a NotDotNet category attribute for tests that pass on mono and do not pass on .NET, yet the difference in behavior is reasonable.
svn path=/trunk/mcs/; revision=67212
2006-11-01 13:07:32 +00:00
Gonzalo Paniagua Javier c6ab8d6e16 2006-03-23 Gonzalo Paniagua Javier <[email protected]>
* SimpleWorkerRequestTest.cs: new tests for PathInfo and disabled a test
	that throws a nullref under MS.

	* ApplicationHostTest.cs: fixed 2 assertions to expect what MS does.


svn path=/trunk/mcs/; revision=58393
2006-03-23 22:08:48 +00:00
Gonzalo Paniagua Javier 9287fab5ca 2006-02-02 Gonzalo Paniagua Javier <[email protected]>
* HostingEnvironmentTest.cs: tests for MapPath.


svn path=/trunk/mcs/; revision=56497
2006-02-02 22:19:42 +00:00
Gonzalo Paniagua Javier 833fdc3813 build fix
svn path=/trunk/mcs/; revision=56475
2006-02-02 15:41:37 +00:00
Gonzalo Paniagua Javier 5a1b044f86 2006-02-01 Gonzalo Paniagua Javier <[email protected]>
* VirtualPathProviderTest.cs: tests for GetFileHash.


svn path=/trunk/mcs/; revision=56422
2006-02-01 21:35:05 +00:00
Gonzalo Paniagua Javier 3ba5628d91 2006-02-01 Gonzalo Paniagua Javier <[email protected]>
* HostingEnvironmentTest.cs: new tests.


svn path=/trunk/mcs/; revision=56411
2006-02-01 19:48:51 +00:00
Gonzalo Paniagua Javier fc5117379b new file and fixes
svn path=/trunk/mcs/; revision=56084
2006-01-25 23:14:48 +00:00
Gonzalo Paniagua Javier 8af6385846 2006-01-25 Gonzalo Paniagua Javier <[email protected]>
* VirtualPathProviderTest.cs: new tests.


svn path=/trunk/mcs/; revision=56083
2006-01-25 23:10:15 +00:00
Gonzalo Paniagua Javier 3cc0ae7d45 new tests by Robert Jordan
svn path=/trunk/mcs/; revision=53598
2005-11-28 22:45:16 +00:00
Gonzalo Paniagua Javier bf758d56df 2005-09-28 Gonzalo Paniagua Javier <[email protected]>
* ApplicationHostTest.cs: disabled a test.


svn path=/trunk/mcs/; revision=50926
2005-09-28 05:46:36 +00:00
Gonzalo Paniagua Javier 1ba826fe9f compilation fixes
svn path=/trunk/mcs/; revision=50423
2005-09-21 22:08:36 +00:00
Sebastien Pouliot 3972b5eece 2005-09-21 Sebastien Pouliot <[email protected]>
* SimpleWorkerRequestTest.cs: When in doubt write more tests...


svn path=/trunk/mcs/; revision=50420
2005-09-21 21:22:16 +00:00
Sebastien Pouliot 3ec4b8af6f 2005-09-18 Sebastien Pouliot <[email protected]>
* SimpleWorkerRequestTest.cs: Ensure a trailing / in the expected path
	as GetAppPathTranslated must have one (while most directory methods
	don't append one).


svn path=/trunk/mcs/; revision=50211
2005-09-18 23:59:13 +00:00
Sebastien Pouliot d2481767f0 2005-09-13 Sebastien Pouliot <[email protected]>
* SimpleWorkerRequestTest.cs: Added a test case (GetUriPath) that was 
	failing in the CAS tests (but wasn't CAS related).
	* SimpleWorkerRequestCas.cs: Ignore the ctor(string,string,TextWriter)
	test as I don't have a working test case. Simplify GetUriPath check
	so it doesn't fail.


svn path=/trunk/mcs/; revision=49992
2005-09-14 00:28:40 +00:00
Sebastien Pouliot 448b72b811 forgot to add new files...
svn path=/trunk/mcs/; revision=49943
2005-09-12 12:01:09 +00:00
Sebastien Pouliot 3840f98020 2005-09-10 Sebastien Pouliot <[email protected]>
* AppDomainFactoryCas.cs: New. CAS unit tests for AppDomainFactory.
	* ApplicationHostCas.cs: New. CAS unit tests for ApplicationHost.
	* ISAPIRuntimeCas.cs: New. CAS unit tests for ISAPIRuntime.
	* SimpleWorkerRequestCas.cs: New. CAS unit tests for 
	SimpleWorkerRequest.
	* SimpleWorkerRequestTest.cs: Added a few (unworking) test cases for
	GetPathInfo method.


svn path=/trunk/mcs/; revision=49863
2005-09-10 14:06:15 +00:00
Miguel de Icaza d947afc6fe Tests
svn path=/trunk/mcs/; revision=48933
2005-08-26 22:51:44 +00:00