示例#1
0
        public void GetConnectionProperties()
        {
            DbaseConnection connection = new DbaseConnection();

            String properties = "Abhishek";

            Assert.AreEqual(properties,connection.GetConnectionProperties());
        }
示例#2
0
 public void TestOpenConnection()
 {
     String properties = "Data Source=localhost\\SQLExpress;Initial Catalog=agile;Trusted_Connection=true;";
     DbaseConnection connection = new DbaseConnection();
     SqlConnection co = null;
     try
     {
        co = connection.OpenConnection(properties);
         Assert.Fail("Should Fail");
         connection.CloseConnection(co);
     }
     catch (Exception e)
     {
         Console.Write(e.ToString());
         connection.CloseConnection(co);
     }
 }