Why can’t i use const values in timeout attribute, example:
private const int TIME_OUT = 1000;
[TesMethod]
[Timeout(2 * TIME_OUT)]
public void testA(){
while(true);
}
Editing after comments:
It compiles but never stops in “timeout seconds”
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s a bug in Visual Studio 2008 and this bug was fixed in VS2010