title: MSTest: how to increase test time
body: <p>I have one test that needs to work more then 1 minute (VS2008, MSTest, tests are launched from the VisualStudio):</p>
  
  <pre><code>    const int TestTimeout = 1;
  
      [TestMethod]
      [Timeout(10*60*1000)] // 10 minutes
      public void Login_ExpirationFail_Test()
      {
          IAuthenticationParameters parameters = new AuthenticationParameters(...);
          LdapAuthentication auth1 = new LdapAuthentication();
          IAuthenticationLoginResult res = auth1.Login(parameters);
  
          Assert.IsNotNull(res);
          Assert.IsFalse(string.IsNullOrEmpty(res.SessionId));
  
          const int AdditionalMilisecodns = 400;
          System.Threading.Thread.Sleep((TestTimeout * 1000 + AdditionalMilisecodns) * 60);
  
          LdapAuthentication auth2 = new LdapAuthentication();
          auth2.CheckTicket(res.SessionId);
      }
  </code></pre>
  
  <p>This test is finished in "Run" mode with "Test 'Login_ExpirationFail_Test' exceeded execution timeout period." error message, in "Debug" - it works fine.</p>
  
  <p>I saw few similar problems linked to launching tests from the command line.</p>
  
  <p>How could I get my test workable in "Run" mode?</p>
  
  <p>Thanks.</p>