System.CodeDom.Tests.CodeAttributeDeclarationTests.Ctor_NullObjectInArguments_ThrowsArgumentNullException C# (CSharp) Method

Ctor_NullObjectInArguments_ThrowsArgumentNullException() private method

		public void Ctor_NullObjectInArguments_ThrowsArgumentNullException()
		{
			CodeAttributeArgument[] arguments = new CodeAttributeArgument[] { null };
			Assert.Throws<ArgumentNullException>("value", () => new CodeAttributeDeclaration("name", arguments));
			Assert.Throws<ArgumentNullException>("value", () => new CodeAttributeDeclaration(new CodeTypeReference(), arguments));
		}