title: NHibernate / Npgsql throws exception during CreateSchema while debugging UnitTest
body: <p>I have two C# projects, Model and ModelTest. Model consists of ActiveRecord objects (wrapper around Hibernate). In ModelTest I created a simple unit test:</p>
  
  <pre><code>[TestClass]
  public class UnitTest1
  {
      [TestInitialize]
      public void Init()
      {
          Model.Init();
          Model.CreateSchema();
      }
  
      [TestMethod]
      public void TestMethod1()
      {
      }
  }
  </code></pre>
  
  <p>Model.Init() registers all types of assembly Model with ActiveRecord.
  Model.CreateSchema() wraps ActiveRecordStarter.CreateSchema(), which calls CreateSchema() of NHibernate.</p>
  
  <p>This code works fine, if I run the unit test, but it fails if I "debug" the unit test. In debug mode, an exception occurs in CreateSchema():</p>
  
  <pre><code>NpgsqlException: 'ERROR: 42P01: table "user" does not exist'
  </code></pre>
  
  <p>The exception seems to be raised during the SQL call "drop table user cascade", which obviously fails if the database is empty before running the test. I assume the drop is sent always before creating a new table.</p>
  
  <p>Does Npgsql behave differently in debug mode, regarding the outcome of a drop query?</p>