6 Commits
Author SHA1 Message Date
Alexander Köplinger 746650d1b9 [bcl] Remove more NET_2_0 checks from class libs 2015-01-17 05:45:39 +01:00
Ilker Cetinkaya dcf5db5021 changed namespace to MonoTests.* in order to be captured by TEST_HARNESS_FLAGS make option. 2012-01-12 22:37:21 +01:00
Jonathan Pryor 3a3269001b * System.CodeDom.Compiler/CodeGenerator.cs: Clear out the current member
when beginning Type generation.  This prevents "invalid" 
	  `#endregion`s; if the CodeGenerator instance is reused for multiple 
	  types, the last member of the first type has an EndDirective, then 
	  the EndDirectvies will be generated before any members of the 2nd 
	  type.  Don't do that.
	* Test/System.CodeDom.Compiler/CodeGeneratorTest.cs: Add some testing 
	  for CodeRegionDirectives.

svn path=/trunk/mcs/; revision=155321
2010-04-13 18:48:04 +00:00
Miguel de Icaza 56f425ec1e 2007-03-05 Peter Dettman <[email protected]>
* Codegenerator.cs: I noticed an `unreachable code' warning while
	building Mono:

	System.CodeDom.Compiler/CodeGenerator.cs(1229,42): warning CS0162:
	Unreachable code detected

	This turned out to be in the method
	CodeGenerator.IsValidLanguageIndependentIdentifier, which was
	broken.

	The following patch contains a unit test to demonstrate the
	problem (checked against MS.NET), and a fix to CodeGenerator.cs.

svn path=/trunk/mcs/; revision=73782
2007-03-06 04:59:30 +00:00
Gert Driesen cafc6003d6 * CodeGeneratorFromTypeTest.cs: Added BaseTypes and TypeConstructor
tests. Added enum, interface and delegate tests.
* CodeTypeDelegateTest.cs: Added tests for BaseTypes and ReturnType.
* CodeGeneratorTest.cs: Removed duplicate import of NUNit.Framework namespace.
* CodeGeneratorFromTypeTestBase.cs: Added BaseTypes and TypeConstructor tests.
* CodeGeneratorFromTypeTest.cs: Added BaseTypes and TypeConstructor
tests. Enabled enum, interface and delegate tests.
* CSharpCodeGenerator.cs: Fixed generated code for enums, interfaces
and delegates to match MS.NET.
* CodeTypeReference.cs: Added internal IsInterface property.
* CodeTypeDelegate.cs: System.Delegate is base type, and make sure
ReturnType is initialized.
* System_test.dll.sources: Added CodeTypeDelegateTest.cs from System.CodeDom.
* CodeGenerator.cs: Threat delegates like any other type.
* VBCodeGenerator.cs: Fixed generated code for enums, interfaces and
delegates to match MS.NET.

svn path=/trunk/mcs/; revision=47604
2005-07-24 12:19:26 +00:00
Gert Driesen 16b04eb9a6 * CodeGeneratorTest.cs: Added unit tests for CodeGenerator.IsCurrent*.
* System_test.dll.sources: Added CodeGeneratorTest.cs from 
System.CodeDom.Compiler.
* CodeGenerator.cs: Fixed IsCurrentClass to return false for delegate.

svn path=/trunk/mcs/; revision=47500
2005-07-21 09:33:05 +00:00