title: NullReferenceException running Silverlight Unit Test
body: <p>I'm trying to get a Silverlight 4 unit test to work (using the framework from Microsoft that's installed with the Silverlight Toolkit) and get a NullReferenceException checking the Text property of a TextBlock.  I'm sure I'm missing something in getting the xaml page to load / initialise.  Here's the code:</p>
  
  <pre><code>[TestClass]
  public class Tests 
  {
      private MainPage _myPage;
  
      [TestInitialize]
      public void PreparePage()
      {
          _myPage = new MainPage();
      }
  
      [TestMethod]
      public void TitleIsInInitialState()
      {
          Assert.AreEqual(_myPage.myTextBlock.Text, "myText");
      }
  }
  </code></pre>
  
  <p>I then run the html page that refers to my Silverlight unit test project.  What am I missing?</p>
  
  <p>Thanks,
  Krip</p>