forked from nhibernate/nhibernate-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOracleClientDriverFixture.cs
40 lines (36 loc) · 974 Bytes
/
OracleClientDriverFixture.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Data.Common;
using NHibernate.Driver;
using NUnit.Framework;
namespace NHibernate.Test.DriverTest
{
/// <summary>
/// Summary description for OracleClientDriverFixture.
/// </summary>
[TestFixture]
// Since v5.3
[Obsolete]
public class OracleClientDriverFixture
{
/// <summary>
/// Verify that the correct Connection Class is being loaded.
/// </summary>
[Test]
public void ConnectionClassName()
{
IDriver driver = new OracleClientDriver();
DbConnection conn = driver.CreateConnection();
Assert.AreEqual("System.Data.OracleClient.OracleConnection", conn.GetType().FullName);
}
/// <summary>
/// Verify that the correct Command class is being loaded.
/// </summary>
[Test]
public void CommandClassName()
{
OracleClientDriver driver = new OracleClientDriver();
DbCommand cmd = driver.CreateCommand();
Assert.AreEqual("System.Data.OracleClient.OracleCommand", cmd.GetType().FullName);
}
}
}