title: VS Team Test: Multiple Test Initialize Methods in Test Class
body: <p>I have unit test project called “MyClassTest” in TeamTest.  This project has three TestMethods. Each method needs its own test initialization steps. But when I apply <strong>TestInitializeAttribute</strong> to three initialization methods, it says the attribute should not be used more than once. Then what should be the attribute to be used to initialize each test method in Visual Studio Team Test?</p>
  
  <p>Reference:</p>
  
  <ol>
  <li><p><a href="https://stackoverflow.com/questions/10684441/vs-team-test-net-unit-testing-with-excel-as-data-source-adapter-failed">VS Team Test: .Net Unit Testing with Excel as Data Source: Adapter Failed</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/2304549/how-to-create-startup-and-cleanup-script-for-visual-studio-test-project">How to create Startup and Cleanup script for Visual Studio Test Project?</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/8990448/vs-2010-load-tests-results-with-custom-counters">VS 2010 Load Tests Results with custom counters</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/3879819/how-to-log-unit-test-entry-and-leave-in-mstest">How to log unit test entry and leave in MSTest</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/344069/can-a-unit-test-project-load-the-target-applications-app-config-file">Can a unit test project load the target application&#39;s app.config file?</a></p></li>
  </ol>