Commit Graph
3 Commits
Author SHA1 Message Date
Marek Habersack b1bbc5ad14 Fixed two broken tests
svn path=/trunk/mcs/; revision=154745
2010-04-03 00:24:42 +00:00
Raja R Harinath 3f9d37cf39 Use ExpectedException(string) when referring to internal exception types
In class/System.Web/Test/System.Web.Compilation:

	* TemplateControlCompilerTest.cs (InvalidPropertyBindTest1):
	Don't use 'typeof' on a System.Web internal exception type.
	(InvalidPropertyBindTest3): Likewise.

In class/System.Web/Test/System.Web.UI:

	* PageParserTest.cs (MissingMasterFile): Don't use 'typeof' on a
	System.Web internal exception type.

svn path=/trunk/mcs/; revision=137420
2009-07-06 16:02:16 +00:00
Marek Habersack d0135f374d 2008-12-10 Marek Habersack <[email protected]>
* MasterPageParser.cs: do not compile anything while
	parsing. MasterType virtual path is not compiled, but stored for
	later. It is compiled when the MasterType property is requested
	from within MasterPageCompiler.

	* PageParser.cs: do not compile anything while
	parsing. MasterPageFile, MasterType and PreviousPageType virtual
	paths aren't compiled but checked for existence and stored for
	later. Actual compilation happens when the MasterType and
	PreviousPageType are requested from within PageCompiler.

	* BaseParser.cs: added a new helper method, ThrowParseFileNotFound.

2008-12-10  Marek Habersack  <[email protected]>

	* ParseException.cs: made serializable.

	* PageCompiler.cs: CreateStronglyTypedProperty calls
	AddReferencedAssembly to add type's assembly to the unit's
	references after the typed property has been created.

	* BaseCompiler.cs: added a new helper method,
	AddReferencedAssembly to be used whenever an assembly location
	needs to be added to the compilation unit's list after the parsing
	is done (e.g. when processing PreviousPageType or MasterPageType
	properties in PageParser)

2008-12-10  Marek Habersack  <[email protected]>

	* Makefile (TEST_RESOURCE_FILES): added
	Test/mainsoft/NunitWebResources/MissingMasterFile.aspx

	* System.Web_test.dll.sources: added System.Web.UI/PageParserTest.cs

2008-12-10  Marek Habersack  <[email protected]>

	* NunitWebResources/MissingMasterFile.aspx: added

2008-12-10  Marek Habersack  <[email protected]>

	* PageParserTest.cs: added



svn path=/trunk/mcs/; revision=121181
2008-12-10 02:03:35 +00:00