System.CodeDom.Tests.CodeCatchClauseTests.Ctor_String_CodeTypeReference C# (CSharp) Method

Ctor_String_CodeTypeReference() private method

private Ctor_String_CodeTypeReference ( string localName, CodeTypeReference catchExceptionType ) : void
localName string
catchExceptionType CodeTypeReference
return void
		public void Ctor_String_CodeTypeReference(string localName, CodeTypeReference catchExceptionType)
		{
			var catchClause = new CodeCatchClause(localName, catchExceptionType);
			Assert.Equal(localName ?? string.Empty, catchClause.LocalName);
			Assert.Equal((catchExceptionType ?? new CodeTypeReference(typeof(Exception))).BaseType, catchClause.CatchExceptionType.BaseType);
			Assert.Empty(catchClause.Statements);
		}