Ejemplo n.º 1
0
 public override void TearDown()
 {
     base.TearDown();
     _provider.Dispose();
     engine.Dispose();
     connection.Dispose();
     engine     = null;
     connection = null;
     SqlCeEngineTestContainer.RemoveDataSource(constr);
 }
 public void CanLoad_SqlServerCeProvider()
 {
   string constr = ConfigurationManager.AppSettings[
     "SqlServerCeConnectionString"];
   using (SqlCeEngineTestContainer engine = new SqlCeEngineTestContainer(constr))
   {
     engine.EnsureTemporaryDatabase();
     using (ITransformationProvider provider = ProviderFactory.Create("SqlServerCe", constr))
     {
       Assert.IsNotNull(provider);
     }
   }
   
 }