Commit Graph
6 Commits
Author SHA1 Message Date
Rolf Bjarne Kvinge 43532efc76 * Test/Microsoft.VisualBasic/CodeGeneratorFromCompileUnitTest.cs: Added
ExternalSourceTest.
* Microsoft.VisualBasic/VBCodeGenerator.cs: Add quotes around the
  filename in ExternalSource directives.

svn path=/trunk/mcs/; revision=98097
2008-03-12 22:15:02 +00:00
Gert Driesen fe32d6af83 * CodeGeneratorFromExpressionTest.cs: Added test for
CodeParameterDeclarationExpression.
* CodeGeneratorFromTypeTest.cs: Modified tests to check result
for zero-length event, field and parameter name.
* CodeGeneratorFromStatementTest.cs: Added CodeCommentStatement,
CodeThrowExceptionStatement, CodeGotoStatement and
CodeTryCatchFinallyStatement tests.
* CodeGeneratorFromTypeTestBase.cs: Modified GetMethodMembersType3 to
add parameter with no name.
* CodeGeneratorTestBase.cs: Removed Code property, added Generate
overload taking CodeGeneratorOptions, added NewLine property.
* CodeGeneratorCompileUnitTest.cs: Use Generate method instead of
Code property.
* CodeGeneratorFromExpressionTest.cs: Added test for
CodeParameterDeclarationExpression.
* CodeGeneratorFromTypeTest.cs: Added tests for __exception name that
is output for zero-length field, event and parameter name in 2.0
profile.
* CodeGeneratorFromStatementTest.cs: Added.
* CSharpCodeGenerator.cs: Fixed GenerateComment to also write
comment chars for carriage-return (and skip linefeed, if its the
next character). Fixed output for TryCatchFinallyStatement. Fixed
GotoStatement to end with newline.
* VBCodeGenerator.cs: Fixed NullReferenceException if no ToThrow
expression is set for CodeThrowExceptionStatement. Fixed
GenerateComment to output comment chars for carriage-returns and
linefeed characters. Modified code generated for
CodeTryCatchFinallyStatement to match MS.NET. Fixed code generated
for CodeGotoStatement to match MS.NET. On 2.0 profile, output
"__exception" if name is zero-length string in OutputTypeNamePair.

svn path=/trunk/mcs/; revision=53506
2005-11-26 16:23:45 +00:00
Gert Driesen f21f4e9ec0 * CodeGeneratorTestBase.cs: Fixed line endings. Set eol-style to
native.
* CodeGeneratorFromCompileUnitTest.cs: Fixed line endings. Set
eol-style to native. Modified test to also check output for
CodeAttributeArgument with no name.
* CodeGeneratorFromNamespaceTest.cs: Fixed line endings. Set eol-style
to native.
* CodeGeneratorIdentifierTest.cs: Set eol-style to native.
* CodeGeneratorFromExpressionTest.cs: Fixed line endings. Set
eol-style to native.
* CSharpCodeProviderTest.cs: Set eol-style to native.
* CodeGeneratorFromTypeTest.cs: Fixed line endings. Set eol-style to
native.
* CodeGeneratorFromStatementTest.cs: Fixed line endings. Set
eol-style to native.
* CodeGeneratorTestBase.cs: Set eol-style to native.
* VBCodeProviderTest.cs: Set eol-style to native.
* CodeGeneratorFromCompileUnitTest.cs: Modified test to check
output for CodeAttributeArgument with no name. Set eol-style to
native.
* CodeGeneratorFromExpressionTest.cs: Set eol-style to native.
* CodeGeneratorFromTypeTest.cs: Fixed line endings. Set eol-style to
native.
* VBCodeGenerator.cs: Do not output name of CodeAttributeArgument if
its a zero-length string.

svn path=/trunk/mcs/; revision=52205
2005-10-25 20:17:22 +00:00
Gert Driesen a420f939be * CodeMemberPropertyTest.cs: Test for default value of Type property.
* CodeGeneratorFromCompileUnitTest.cs: Removed last usage of Assertion class.
* CodeGeneratorFromTypeTest.cs: Added tests for method, property and
parameter level attributes.
* CodeMemberProperty.cs: Default value of Type is empty CodeTypeReference.
* System_test.dll.sources: Added CodeMemberPropertyTest.cs from System.CodeDom.
* VBCodeGenerator.cs: Fixed generated code for method, property and parameter 
level attributes. Fixed code generated for FieldDirection.

svn path=/trunk/mcs/; revision=46516
2005-06-26 08:56:28 +00:00
Gert Driesen c90b010a99 * CodeGeneratorFromCompileUnitTest.cs: Added test for assembly-level attribute
without value. Use Assert insteaad of deprecated Assertion.
* CodeGeneratorFromTypeTest.cs: Use Assert instead of Assertion.

svn path=/trunk/mcs/; revision=46515
2005-06-26 07:42:28 +00:00
Gert Driesen 8d3a80d791 * CodeGeneratorFromCompileUnitTest.cs: several tests to ensure code generated
by GenerateCodeFromCompileUnit matches that of MS.NET.
* System_test.dll.sources: Added CodeGeneratorTestBase.cs and 
CodeGeneratorFromCompileUnitTest.cs from Microsoft.VisualBasic
* VBCodeGenerator.cs: No longer implictly add import for Microsoft.VisualBasic
namespace to match MS.NET. Several fixes in order to have generated code
match that generated by MS.NET.

svn path=/trunk/mcs/; revision=46496
2005-06-25 15:50:03 +00:00