title: Using Nunit to test constructor
body: <p>I'm new to Nunit testing and I wanted to test the following constructor:</p>
  
  <pre><code>public class IngredientDAONHibernate : NutritionLibrary.DAO.IngredientDAO
  
      {
  
            private Configuration config;
          private ISessionFactory factory;
  
          public IngredientDAONHibernate()
          {
              try
              {
                  config = new Configuration();
                  config.AddClass(typeof(NutritionLibrary.Entity.Ingredient));
                  config.AddClass(typeof(Entity.Nutrient));
                  config.AddClass(typeof(Entity.NutrientIngredient));
                         factory = config.BuildSessionFactory();
              }
              catch (Exception e)
              {
  
                  // logger.Error("Exception Occured", e);
              }
          }
  </code></pre>
  
  <p>The test stub is as follows:</p>
  
  <pre><code>[TestMethod()]
          public void IngredientDAONHibernateConstructorTest()
          {
              IngredientDAONHibernate target = new IngredientDAONHibernate();
  
          }
  </code></pre>
  
  <p>Could someone help me with some tips as to how I can get started? Thanks! </p>