[Adapdev-commits] Adapdev/src/Adapdev.Data.Tests/Schema CompareDatabaseSchemasTest.cs,1.1,1.2
Status: Beta
Brought to you by:
intesar66
From: Sean M. <int...@us...> - 2006-03-19 07:13:34
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.Data.Tests/Schema In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12218/src/Adapdev.Data.Tests/Schema Modified Files: CompareDatabaseSchemasTest.cs Log Message: Index: CompareDatabaseSchemasTest.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.Data.Tests/Schema/CompareDatabaseSchemasTest.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CompareDatabaseSchemasTest.cs 27 Nov 2005 06:32:43 -0000 1.1 --- CompareDatabaseSchemasTest.cs 19 Mar 2006 07:13:31 -0000 1.2 *************** *** 93,99 **** DatabaseSchema ds3 = compare.Compare(); ! Console.WriteLine(ds3); Assert.IsTrue(ds3.Tables.Count == 1); ! Assert.IsTrue(ds3.GetTable("Table1").Columns.Count == 1, "Removed column is still present"); } --- 93,103 ---- DatabaseSchema ds3 = compare.Compare(); ! //Console.WriteLine(ds3); ! foreach(ColumnSchema cs in ds3.GetTable("Table1").SortedColumns.Values) ! { ! Console.WriteLine(cs.Name); ! } Assert.IsTrue(ds3.Tables.Count == 1); ! Assert.IsTrue(ds3.GetTable("Table1").Columns.Count == 1); } *************** *** 126,131 **** DatabaseSchema ds3 = compare.Compare(); ! Assert.IsTrue(ds3.Tables.Count == 1); ! Assert.AreEqual("REMOVED_Table1", ds3.GetTable("Table1").Name); } --- 130,134 ---- DatabaseSchema ds3 = compare.Compare(); ! Assert.IsTrue(ds3.Tables.Count == 0); } |