Beispiel #1
0
        public static void Main()
        {
            SqlConnection_BeginTransaction_S tc = new SqlConnection_BeginTransaction_S();
            Exception exp = null;

            try
            {
                tc.BeginTest("SqlConnection_BeginTransaction_S");

                //testing only on SQLServer
                if (ConnectedDataProvider.GetDbType(ConnectedDataProvider.ConnectionStringSQLClient) != DataBaseServer.SQLServer)
                {
                    return;
                }

                tc.SetUp();
                tc.run();
                tc.TearDown();
            }
            catch (Exception ex)
            {
                exp = ex;
            }
            finally
            {
                tc.EndTest(exp);
            }
        }
		public static void Main()
		{
			SqlConnection_BeginTransaction_S tc = new SqlConnection_BeginTransaction_S();
			Exception exp = null;
			try
			{
				tc.BeginTest("SqlConnection_BeginTransaction_S");

				//testing only on SQLServer
				if (ConnectedDataProvider.GetDbType(ConnectedDataProvider.ConnectionStringSQLClient) != DataBaseServer.SQLServer) return ; 

				tc.SetUp();
				tc.run();
				tc.TearDown();
			}
			catch(Exception ex)
			{
				exp = ex;
			}
			finally
			{
				tc.EndTest(exp);
			}
		}