Definition at line 22 of file DbConnectionTests.cs.
void Deveel.Data.Client.DbConnectionTests.OpenForAdmin |
( |
| ) |
|
|
inline |
Definition at line 24 of file DbConnectionTests.cs.
25 IDbConnection connection = null;
27 Assert.IsNotNull(connection);
29 Assert.AreEqual(ConnectionState.Closed, connection.State);
30 Assert.DoesNotThrow(() => connection.Open());
31 Assert.AreEqual(ConnectionState.Open, connection.State);
32 Assert.DoesNotThrow(() => connection.Close());
33 Assert.AreEqual(ConnectionState.Closed, connection.State);
const string AdminPassword
const string AdminUserName
void Deveel.Data.Client.DbConnectionTests.QueryForAdmin |
( |
| ) |
|
|
inline |
Definition at line 58 of file DbConnectionTests.cs.
59 IDbConnection connection = null;
61 Assert.IsNotNull(connection);
63 IDbCommand command = null;
64 Assert.DoesNotThrow(() => command = connection.CreateCommand());
65 Assert.IsNotNull(command);
67 command.CommandText =
"SELECT user()";
69 IDataReader reader = null;
70 Assert.DoesNotThrow(() => reader = command.ExecuteReader());
71 Assert.IsNotNull(reader);
72 Assert.AreEqual(1, reader.FieldCount);
73 Assert.IsTrue(reader.Read());
76 Assert.DoesNotThrow(() => value = reader.GetValue(0));
77 Assert.IsInstanceOf<
string>(value);
const string AdminPassword
const string AdminUserName
void Deveel.Data.Client.DbConnectionTests.QueryScalarForAdmin |
( |
| ) |
|
|
inline |
Definition at line 37 of file DbConnectionTests.cs.
38 IDbConnection connection = null;
40 Assert.IsNotNull(connection);
42 IDbCommand command = null;
43 Assert.DoesNotThrow(() => command = connection.CreateCommand());
44 Assert.IsNotNull(command);
46 command.CommandText =
"SELECT user()";
49 Assert.DoesNotThrow(() => value = command.ExecuteScalar());
50 Assert.IsNotNull(value);
51 Assert.IsInstanceOf<
string>(value);
54 Assert.DoesNotThrow(() => connection.Dispose());
const string AdminPassword
const string AdminUserName
The documentation for this class was generated from the following file:
- /var/calculate/remote/distfiles/egit-src/deveeldb.git/src/deveeldb-nunit/Deveel.Data.Client/DbConnectionTests.cs