title: MsTest ClassInitialize and Inheritance
body: <p>I have a base class for my tests which is composed in the following way:</p>
  
  <pre><code>[TestClass]
  public abstract class MyBaseTest
  {
     protected static string myField = "";
  
     [ClassInitialize]
     public static void ClassInitialize(TestContext context)
     {
         // static field initialization
         myField = "new value";
     }
  }
  </code></pre>
  
  <p>Now I am trying to create a new test that inherits from the base, with the following signature:</p>
  
  <pre><code>[TestClass]
  public class MyTest : MyBaseTest
  {
     [TestMethod]
     public void BaseMethod_ShouldHave_FieldInitialized()
     {
         Assert.IsTrue(myField == "new value");
     }
  }
  </code></pre>
  
  <p>The <code>ClassInitialize</code> is never called by the child tests ... What is the <strong>real and correct</strong> way of using test initialization with inheritance on MsTest?</p>