~mysql-clr-team/connectornet/5.1

« back to all changes in this revision

Viewing changes to TestSuite/Source/MicroPerfTests.cs

  • Committer: rburnett
  • Date: 2009-07-13 03:05:09 UTC
  • Revision ID: svn-v4:2c9ddd90-d0e4-2748-bbbe-478c86ca91f6:branches/5.1:1692
removing an unused test

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright (C) 2004-2007 MySQL AB
2
 
//
3
 
// This program is free software; you can redistribute it and/or modify
4
 
// it under the terms of the GNU General Public License version 2 as published by
5
 
// the Free Software Foundation
6
 
//
7
 
// There are special exceptions to the terms and conditions of the GPL 
8
 
// as it is applied to this software. View the full text of the 
9
 
// exception in file EXCEPTIONS in the directory of this software 
10
 
// distribution.
11
 
//
12
 
// This program is distributed in the hope that it will be useful,
13
 
// but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
 
// GNU General Public License for more details.
16
 
//
17
 
// You should have received a copy of the GNU General Public License
18
 
// along with this program; if not, write to the Free Software
19
 
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
20
 
 
21
 
using System;
22
 
using System.Data;
23
 
using MySql.Data.MySqlClient;
24
 
using NUnit.Framework;
25
 
 
26
 
namespace MySql.Data.MySqlClient.Tests
27
 
{
28
 
        [TestFixture]
29
 
        public class MicroPerfTests : BaseTest
30
 
        {
31
 
        protected override void Setup()
32
 
        {
33
 
            base.Setup();
34
 
            execSQL("DROP TABLE IF EXISTS Test");
35
 
            execSQL("CREATE TABLE Test (id int NOT NULL, name VARCHAR(100))");
36
 
        }
37
 
 
38
 
/*        [Test]
39
 
        public void Connect1000Times()
40
 
        {
41
 
            DateTime start = DateTime.Now;
42
 
 
43
 
            for (int i = 0; i < 1000; i++)
44
 
            {
45
 
                MySqlConnection c = new MySqlConnection(
46
 
                    base.GetConnectionString(true));
47
 
                c.Open();
48
 
                c.Close();
49
 
            }
50
 
        }*/
51
 
    }
52
 
}