T
Tapas
Hi,
I need to generate an Attribute [SetUp] and associate it with a
method in CodeDom.
// Code snippet
CodeMemberMethod setUp = new CodeMemberMethod();
setUp.CustomAttributes.Add(new CodeAttributeDeclaration("SetUp"));
But, this creates an Attribute [SetUp()]. Which doesn't go well with
NUnit testing. I want to get reed of the brackets and final generated
output should be [SetUp]. How do I do this?
Thanks in advance.
Regards
Tapas
I need to generate an Attribute [SetUp] and associate it with a
method in CodeDom.
// Code snippet
CodeMemberMethod setUp = new CodeMemberMethod();
setUp.CustomAttributes.Add(new CodeAttributeDeclaration("SetUp"));
But, this creates an Attribute [SetUp()]. Which doesn't go well with
NUnit testing. I want to get reed of the brackets and final generated
output should be [SetUp]. How do I do this?
Thanks in advance.
Regards
Tapas