[Adapdev-commits] Adapdev/src/Adapdev.Cache.Tests AbstractICacheTest.cs,1.7,1.8
Status: Beta
Brought to you by:
intesar66
From: Sean M. <int...@us...> - 2006-03-01 01:38:58
|
Update of /cvsroot/adapdev/Adapdev/src/Adapdev.Cache.Tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6213/src/Adapdev.Cache.Tests Modified Files: AbstractICacheTest.cs Log Message: Index: AbstractICacheTest.cs =================================================================== RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev.Cache.Tests/AbstractICacheTest.cs,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** AbstractICacheTest.cs 26 Jan 2006 05:10:05 -0000 1.7 --- AbstractICacheTest.cs 1 Mar 2006 01:38:50 -0000 1.8 *************** *** 119,124 **** Assert.IsTrue(cache.Count == 2, "Cache count should be 2."); ! CacheItem c1 = cache.GetCacheItem(typeof(SuppliersEntity), e1.SupplierID); ! CacheItem c2 = cache.GetCacheItem(typeof(SuppliersEntity), e2.SupplierID); Assert.IsTrue(c1.Ordinal != c2.Ordinal, "Ordinals should be different."); --- 119,124 ---- Assert.IsTrue(cache.Count == 2, "Cache count should be 2."); ! ICacheItem c1 = cache.GetCacheItem(typeof(SuppliersEntity), e1.SupplierID); ! ICacheItem c2 = cache.GetCacheItem(typeof(SuppliersEntity), e2.SupplierID); Assert.IsTrue(c1.Ordinal != c2.Ordinal, "Ordinals should be different."); *************** *** 145,149 **** cache.Add(e1.SupplierID, e1); ! CacheItem c = cache.GetCacheItem(e1.GetType(), e1.SupplierID); Assert.AreEqual(e1.GetType(), c.ObjectType, "Object Types aren't equal."); Assert.AreEqual(1, c.Ordinal, "Ordinal should be 1"); --- 145,149 ---- cache.Add(e1.SupplierID, e1); ! ICacheItem c = cache.GetCacheItem(e1.GetType(), e1.SupplierID); Assert.AreEqual(e1.GetType(), c.ObjectType, "Object Types aren't equal."); Assert.AreEqual(1, c.Ordinal, "Ordinal should be 1"); |