Exemple #1
0
 public void Init()
 {
     try
     {
         GentleSqlFactory sf = Broker.GetSqlFactory();
         // this will throw an exception because under normal operation it would indicate an error
         runTest     = (sf.GetDbType(typeof(Guid)) != sf.NO_DBTYPE) || (sf.GetDbType(typeof(byte[])) != sf.NO_DBTYPE);
         picture     = GetPicture();
         pictureSize = GetSize(picture);
     }
     catch
     {
         runTest = false;
     }
 }
 public void Init()
 {
     try
     {
         GentleSqlFactory sf = Broker.GetSqlFactory();
         // this will throw an exception because under normal operation it would indicate an error
         runTest = sf.GetDbType(typeof(Guid)) != sf.NO_DBTYPE;
     }
     catch
     {
         runTest = false;
     }
 }