[Adapdev-commits] Adapdev/src/Adapdev.Data.Tests SchemaBuilderTest.cs,1.2,1.3
Status: Beta
Brought to you by:
intesar66
From: Trevor L. <tre...@us...> - 2005-04-13 04:24:33
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.Data.Tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7596/src/Adapdev.Data.Tests Modified Files: SchemaBuilderTest.cs Log Message: Index: SchemaBuilderTest.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.Data.Tests/SchemaBuilderTest.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** SchemaBuilderTest.cs 10 Apr 2005 09:59:05 -0000 1.2 --- SchemaBuilderTest.cs 13 Apr 2005 04:23:36 -0000 1.3 *************** *** 52,60 **** Assert.AreEqual(0, ct.Count, "Should be zero items after deleting the item"); ! ct.Add(new DbConnectionType("zarniwoop",DbType.SQLSERVER, "OLEDB",true, true, true, true)); ! ct.Add(new DbConnectionType("beeblebrox",DbType.SQLSERVER, "OLEDB",true, true, true, true)); ! ct.Add(new DbConnectionType("magrathea",DbType.SQLSERVER, "OLEDB",true, true, true, true)); ! ct.Add(new DbConnectionType("marvin",DbType.SQLSERVER, "OLEDB",true, true, true, true)); ! ct.Add(new DbConnectionType("vogon",DbType.SQLSERVER, "OLEDB",true, true, true, true)); Assert.AreEqual("beeblebrox", ct.GetByIndex(0).Name); --- 52,60 ---- Assert.AreEqual(0, ct.Count, "Should be zero items after deleting the item"); ! ct.Add(new DbConnectionType("zarniwoop",DbType.SQLSERVER, "OLEDB",true, true, true, true, false)); ! ct.Add(new DbConnectionType("beeblebrox",DbType.SQLSERVER, "OLEDB",true, true, true, true, false)); ! ct.Add(new DbConnectionType("magrathea",DbType.SQLSERVER, "OLEDB",true, true, true, true, false)); ! ct.Add(new DbConnectionType("marvin",DbType.SQLSERVER, "OLEDB",true, true, true, true, false)); ! ct.Add(new DbConnectionType("vogon",DbType.SQLSERVER, "OLEDB",true, true, true, true, false)); Assert.AreEqual("beeblebrox", ct.GetByIndex(0).Name); *************** *** 73,77 **** Assert.IsNotNull(ct); ! ct = new DbConnectionType("TestType",DbType.SQLSERVER, "OLEDB", true, true, true, true); Assert.IsFalse(ct.SupportsFile); Assert.IsTrue(ct.SupportsServer); --- 73,77 ---- Assert.IsNotNull(ct); ! ct = new DbConnectionType("TestType",DbType.SQLSERVER, "OLEDB", true, true, true, true, false); Assert.IsFalse(ct.SupportsFile); Assert.IsTrue(ct.SupportsServer); *************** *** 87,91 **** [ExpectedException(typeof(ApplicationException))] public void ConnectionTypeInternalFails() { ! DbConnectionType ct = new DbConnectionType("TestType",DbType.SQLSERVER, "OLEDB", true, true, true, true); Assert.AreEqual("OLEDB", ct.InternalProviderName); Assert.IsNull(ct.InternalProvider); --- 87,91 ---- [ExpectedException(typeof(ApplicationException))] public void ConnectionTypeInternalFails() { ! DbConnectionType ct = new DbConnectionType("TestType",DbType.SQLSERVER, "OLEDB", true, true, true, true, false); Assert.AreEqual("OLEDB", ct.InternalProviderName); Assert.IsNull(ct.InternalProvider); *************** *** 102,106 **** Assert.AreEqual(0, cp.Count, "Should be zero items after deleting the item"); ! DbConnectionType ct = new DbConnectionType("TestType",DbType.SQLSERVER,"OLEDB", true, true, true, true); ct.Providers = cp; --- 102,106 ---- Assert.AreEqual(0, cp.Count, "Should be zero items after deleting the item"); ! DbConnectionType ct = new DbConnectionType("TestType",DbType.SQLSERVER,"OLEDB", true, true, true, true, false); ct.Providers = cp; *************** *** 124,128 **** public void ConnectionProvider() { ! DbConnectionType ct = new DbConnectionType("TestType",DbType.SQLSERVER,"OLEDB", true, true, true, true); DbConnectionProvider cp = new DbConnectionProvider(); Assert.IsNotNull(cp); --- 124,128 ---- public void ConnectionProvider() { ! DbConnectionType ct = new DbConnectionType("TestType",DbType.SQLSERVER,"OLEDB", true, true, true, true, false); DbConnectionProvider cp = new DbConnectionProvider(); Assert.IsNotNull(cp); |