From: Michael D. <mik...@us...> - 2004-12-30 16:25:52
|
Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19437/src/NHibernate.Test/NHSpecificTest Modified Files: BasicClassFixture.cs Log Message: Removed dependency on DotNetMock from the Test assembly. Modified the test that were dependant on DotNetMock. Index: BasicClassFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/NHSpecificTest/BasicClassFixture.cs,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** BasicClassFixture.cs 12 Dec 2004 07:18:24 -0000 1.11 --- BasicClassFixture.cs 30 Dec 2004 16:25:13 -0000 1.12 *************** *** 81,99 **** index++; - - // make sure the previous updates went through - s[index] = sessions.OpenSession(); - t[index] = s[index].BeginTransaction(); - - bc[index] = (BasicClass)s[index].Load(typeof(BasicClass), id); - AssertPropertiesEqual(bc[index-1], bc[index]); - - bc[index].BooleanProperty = false; - s[index].Update(bc[index]); - - t[index].Commit(); - s[index].Close(); - - index++; // make sure the previous updates went through --- 81,84 ---- *************** *** 104,122 **** AssertPropertiesEqual(bc[index-1], bc[index]); - bc[index].ByteProperty = Byte.MinValue; - s[index].Update(bc[index]); - - t[index].Commit(); - s[index].Close(); - - index++; - - // make sure the previous updates went through - s[index] = sessions.OpenSession(); - t[index] = s[index].BeginTransaction(); - - bc[index] = (BasicClass)s[index].Load(typeof(BasicClass), id); - AssertPropertiesEqual(bc[index-1], bc[index]); - bc[index].CharacterProperty = 'b'; s[index].Update(bc[index]); --- 89,92 ---- *************** *** 181,199 **** AssertPropertiesEqual(bc[index-1], bc[index]); - bc[index].DecimalProperty = 5.55555M; - s[index].Update(bc[index]); - - t[index].Commit(); - s[index].Close(); - - index++; - - // make sure the previous updates went through - s[index] = sessions.OpenSession(); - t[index] = s[index].BeginTransaction(); - - bc[index] = (BasicClass)s[index].Load(typeof(BasicClass), id); - AssertPropertiesEqual(bc[index-1], bc[index]); - bc[index].Int16Property = Int16.MinValue; s[index].Update(bc[index]); --- 151,154 ---- *************** *** 887,899 **** { Assert.AreEqual(expected.Id, actual.Id, "Id"); - Assert.AreEqual(expected.BooleanProperty, actual.BooleanProperty, "BooleanProperty"); - Assert.AreEqual(expected.ByteProperty, actual.ByteProperty, "ByteProperty"); Assert.AreEqual(expected.CharacterProperty, actual.CharacterProperty, "CharacterProperty"); Assert.AreEqual(expected.ClassProperty, actual.ClassProperty, "ClassProperty"); Assert.AreEqual(expected.CultureInfoProperty, actual.CultureInfoProperty, "CultureInfoProperty"); Assert.AreEqual(expected.DateTimeProperty, actual.DateTimeProperty, "DateTimeProperty"); - Assert.AreEqual(expected.DecimalProperty, actual.DecimalProperty, "DecimalProperty using Assert should be AreEqual"); - Assert.IsTrue(expected.DecimalProperty.Equals(actual.DecimalProperty), "DecimalProperty"); - // Assert.AreEqual(expected.DoubleProperty, actual.DoubleProperty, 0, "DoubleProperty"); Assert.AreEqual(expected.Int16Property, actual.Int16Property, "Int16Property"); Assert.AreEqual(expected.Int32Property, actual.Int32Property, "Int32Property"); --- 842,849 ---- *************** *** 921,932 **** basicClass.Id = id; - - basicClass.BooleanProperty = true; - basicClass.ByteProperty = Byte.MaxValue; basicClass.CharacterProperty = 'a'; basicClass.ClassProperty = typeof(object); basicClass.CultureInfoProperty = System.Globalization.CultureInfo.CurrentCulture; basicClass.DateTimeProperty = DateTime.Parse("2003-12-01 10:45:21 AM"); - basicClass.DecimalProperty = 5.64351M; basicClass.Int16Property = Int16.MaxValue; basicClass.Int32Property = Int32.MaxValue; --- 871,878 ---- |