Update of /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11286/NHibernate.Test/TypesTest Modified Files: BinaryTypeFixture.cs BooleanTypeFixture.cs ByteTypeFixture.cs DateTimeTypeFixture.cs DecimalTypeFixture.cs DoubleTypeFixture.cs GuidTypeFixture.cs Int16TypeFixture.cs Int32TypeFixture.cs Int64TypeFixture.cs PersistentEnumTypeFixture.cs SByteTypeFixture.cs TicksTypeFixture.cs TimeSpanTypeFixture.cs TimestampTypeFixture.cs TypeFactoryFixture.cs Log Message: Renamed NHibernate.NHibernate to NHibernate.NHibernateUtil. Index: Int16TypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/Int16TypeFixture.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Int16TypeFixture.cs 20 Nov 2004 21:13:03 -0000 1.1 --- Int16TypeFixture.cs 17 Jan 2005 03:40:54 -0000 1.2 *************** *** 16,20 **** public void Next() { ! Int16Type type = (Int16Type)NHibernate.Int16; object current = (short)1; object next = type.Next( current ); --- 16,20 ---- public void Next() { ! Int16Type type = (Int16Type)NHibernateUtil.Int16; object current = (short)1; object next = type.Next( current ); *************** *** 28,32 **** public void Seed() { ! Int16Type type = (Int16Type)NHibernate.Int16; Assert.IsTrue( type.Seed is Int16, "seed should be int16" ); } --- 28,32 ---- public void Seed() { ! Int16Type type = (Int16Type)NHibernateUtil.Int16; Assert.IsTrue( type.Seed is Int16, "seed should be int16" ); } Index: GuidTypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/GuidTypeFixture.cs,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** GuidTypeFixture.cs 30 Dec 2004 16:25:19 -0000 1.4 --- GuidTypeFixture.cs 17 Jan 2005 03:40:54 -0000 1.5 *************** *** 48,52 **** public void Equals() { ! GuidType type = (GuidType)NHibernate.Guid; Guid lhs = new Guid("{01234567-abcd-abcd-abcd-0123456789ab}"); --- 48,52 ---- public void Equals() { ! GuidType type = (GuidType)NHibernateUtil.Guid; Guid lhs = new Guid("{01234567-abcd-abcd-abcd-0123456789ab}"); Index: DecimalTypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/DecimalTypeFixture.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** DecimalTypeFixture.cs 30 Dec 2004 16:25:19 -0000 1.3 --- DecimalTypeFixture.cs 17 Jan 2005 03:40:54 -0000 1.4 *************** *** 52,56 **** decimal rhs = 5.64351M; ! DecimalType type = (DecimalType)NHibernate.Decimal; Assert.IsTrue( type.Equals(lhs, rhs) ); --- 52,56 ---- decimal rhs = 5.64351M; ! DecimalType type = (DecimalType)NHibernateUtil.Decimal; Assert.IsTrue( type.Equals(lhs, rhs) ); Index: TicksTypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/TicksTypeFixture.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TicksTypeFixture.cs 20 Nov 2004 21:13:03 -0000 1.1 --- TicksTypeFixture.cs 17 Jan 2005 03:40:54 -0000 1.2 *************** *** 16,20 **** public void Next() { ! TicksType type = (TicksType)NHibernate.Ticks; object current = new DateTime( 2004, 1, 1, 1, 1, 1, 1 ); object next = type.Next( current ); --- 16,20 ---- public void Next() { ! TicksType type = (TicksType)NHibernateUtil.Ticks; object current = new DateTime( 2004, 1, 1, 1, 1, 1, 1 ); object next = type.Next( current ); *************** *** 28,32 **** public void Seed() { ! TicksType type = (TicksType)NHibernate.Ticks; Assert.IsTrue( type.Seed is DateTime, "seed should be DateTime" ); } --- 28,32 ---- public void Seed() { ! TicksType type = (TicksType)NHibernateUtil.Ticks; Assert.IsTrue( type.Seed is DateTime, "seed should be DateTime" ); } Index: BinaryTypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/BinaryTypeFixture.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** BinaryTypeFixture.cs 12 Dec 2004 07:18:27 -0000 1.1 --- BinaryTypeFixture.cs 17 Jan 2005 03:40:54 -0000 1.2 *************** *** 56,60 **** public void Equals() { ! BinaryType type = (BinaryType)NHibernate.Binary; byte[] expected = System.Text.Encoding.UTF8.GetBytes("ghij1`23%$"); --- 56,60 ---- public void Equals() { ! BinaryType type = (BinaryType)NHibernateUtil.Binary; byte[] expected = System.Text.Encoding.UTF8.GetBytes("ghij1`23%$"); Index: DoubleTypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/DoubleTypeFixture.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** DoubleTypeFixture.cs 12 Dec 2004 07:18:27 -0000 1.1 --- DoubleTypeFixture.cs 17 Jan 2005 03:40:54 -0000 1.2 *************** *** 60,64 **** public void Equals() { ! DoubleType type = (DoubleType)NHibernate.Double; Assert.IsTrue( type.Equals( 1.5e20, 1.5e20 ) ); --- 60,64 ---- public void Equals() { ! DoubleType type = (DoubleType)NHibernateUtil.Double; Assert.IsTrue( type.Equals( 1.5e20, 1.5e20 ) ); Index: Int64TypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/Int64TypeFixture.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Int64TypeFixture.cs 20 Nov 2004 21:13:03 -0000 1.1 --- Int64TypeFixture.cs 17 Jan 2005 03:40:54 -0000 1.2 *************** *** 16,20 **** public void Next() { ! Int64Type type = (Int64Type)NHibernate.Int64; object current = (long)1; object next = type.Next( current ); --- 16,20 ---- public void Next() { ! Int64Type type = (Int64Type)NHibernateUtil.Int64; object current = (long)1; object next = type.Next( current ); *************** *** 28,32 **** public void Seed() { ! Int64Type type = (Int64Type)NHibernate.Int64; Assert.IsTrue( type.Seed is Int64, "seed should be int64" ); } --- 28,32 ---- public void Seed() { ! Int64Type type = (Int64Type)NHibernateUtil.Int64; Assert.IsTrue( type.Seed is Int64, "seed should be int64" ); } Index: TimeSpanTypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/TimeSpanTypeFixture.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TimeSpanTypeFixture.cs 20 Nov 2004 21:13:03 -0000 1.1 --- TimeSpanTypeFixture.cs 17 Jan 2005 03:40:54 -0000 1.2 *************** *** 16,20 **** public void Next() { ! TimeSpanType type = (TimeSpanType)NHibernate.TimeSpan; object current = new TimeSpan( DateTime.Now.Ticks - 5 ); object next = type.Next( current ); --- 16,20 ---- public void Next() { ! TimeSpanType type = (TimeSpanType)NHibernateUtil.TimeSpan; object current = new TimeSpan( DateTime.Now.Ticks - 5 ); object next = type.Next( current ); *************** *** 28,32 **** public void Seed() { ! TimeSpanType type = (TimeSpanType)NHibernate.TimeSpan; Assert.IsTrue( type.Seed is TimeSpan, "seed should be TimeSpan" ); } --- 28,32 ---- public void Seed() { ! TimeSpanType type = (TimeSpanType)NHibernateUtil.TimeSpan; Assert.IsTrue( type.Seed is TimeSpan, "seed should be TimeSpan" ); } Index: DateTimeTypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/DateTimeTypeFixture.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** DateTimeTypeFixture.cs 20 Nov 2004 21:12:52 -0000 1.3 --- DateTimeTypeFixture.cs 17 Jan 2005 03:40:54 -0000 1.4 *************** *** 17,21 **** public void Next() { ! DateTimeType type = (DateTimeType)NHibernate.DateTime; object current = DateTime.Parse( "2004-01-01" ); object next = type.Next( current ); --- 17,21 ---- public void Next() { ! DateTimeType type = (DateTimeType)NHibernateUtil.DateTime; object current = DateTime.Parse( "2004-01-01" ); object next = type.Next( current ); *************** *** 29,33 **** public void Seed() { ! DateTimeType type = (DateTimeType)NHibernate.DateTime; Assert.IsTrue( type.Seed is DateTime, "seed should be DateTime" ); } --- 29,33 ---- public void Seed() { ! DateTimeType type = (DateTimeType)NHibernateUtil.DateTime; Assert.IsTrue( type.Seed is DateTime, "seed should be DateTime" ); } *************** *** 36,40 **** public void DeepCopyNotNull() { ! NullableType type = NHibernate.DateTime; object value1 = DateTime.Now; --- 36,40 ---- public void DeepCopyNotNull() { ! NullableType type = NHibernateUtil.DateTime; object value1 = DateTime.Now; Index: TypeFactoryFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/TypeFactoryFixture.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TypeFactoryFixture.cs 14 Apr 2004 18:08:28 -0000 1.1 --- TypeFactoryFixture.cs 17 Jan 2005 03:40:54 -0000 1.2 *************** *** 47,51 **** public void GetDefaultString() { ! NullableType stringFromNH = NHibernate.String; NullableType stringFromTF = TypeFactory.GetStringType(); --- 47,51 ---- public void GetDefaultString() { ! NullableType stringFromNH = NHibernateUtil.String; NullableType stringFromTF = TypeFactory.GetStringType(); Index: BooleanTypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/BooleanTypeFixture.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** BooleanTypeFixture.cs 30 Dec 2004 16:25:13 -0000 1.3 --- BooleanTypeFixture.cs 17 Jan 2005 03:40:54 -0000 1.4 *************** *** 48,52 **** public void Equals() { ! BooleanType type = (BooleanType)NHibernate.Boolean; Assert.IsTrue( type.Equals( true, true ) ); --- 48,52 ---- public void Equals() { ! BooleanType type = (BooleanType)NHibernateUtil.Boolean; Assert.IsTrue( type.Equals( true, true ) ); Index: TimestampTypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/TimestampTypeFixture.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TimestampTypeFixture.cs 20 Nov 2004 21:13:03 -0000 1.1 --- TimestampTypeFixture.cs 17 Jan 2005 03:40:54 -0000 1.2 *************** *** 16,20 **** public void Next() { ! TimestampType type = (TimestampType)NHibernate.Timestamp; object current = DateTime.Parse( "2004-01-01" ); object next = type.Next( current ); --- 16,20 ---- public void Next() { ! TimestampType type = (TimestampType)NHibernateUtil.Timestamp; object current = DateTime.Parse( "2004-01-01" ); object next = type.Next( current ); *************** *** 28,32 **** public void Seed() { ! TimestampType type = (TimestampType)NHibernate.Timestamp; Assert.IsTrue( type.Seed is DateTime, "seed should be DateTime" ); } --- 28,32 ---- public void Seed() { ! TimestampType type = (TimestampType)NHibernateUtil.Timestamp; Assert.IsTrue( type.Seed is DateTime, "seed should be DateTime" ); } Index: ByteTypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/ByteTypeFixture.cs,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ByteTypeFixture.cs 30 Dec 2004 16:25:19 -0000 1.3 --- ByteTypeFixture.cs 17 Jan 2005 03:40:54 -0000 1.4 *************** *** 48,52 **** public void Equals() { ! ByteType type = (ByteType)NHibernate.Byte; Assert.IsTrue( type.Equals( (byte)5, (byte)5 ) ); --- 48,52 ---- public void Equals() { ! ByteType type = (ByteType)NHibernateUtil.Byte; Assert.IsTrue( type.Equals( (byte)5, (byte)5 ) ); Index: PersistentEnumTypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/PersistentEnumTypeFixture.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** PersistentEnumTypeFixture.cs 30 Dec 2004 16:25:19 -0000 1.2 --- PersistentEnumTypeFixture.cs 17 Jan 2005 03:40:54 -0000 1.3 *************** *** 31,35 **** public void EqualsTrue() { ! IType type = NHibernate.Enum(typeof(A)); A lhs = A.One; --- 31,35 ---- public void EqualsTrue() { ! IType type = NHibernateUtil.Enum(typeof(A)); A lhs = A.One; *************** *** 46,50 **** public void EqualsFalseSameUnderlyingValue() { ! IType type = NHibernate.Enum(typeof(A)); A lhs = A.One; --- 46,50 ---- public void EqualsFalseSameUnderlyingValue() { ! IType type = NHibernateUtil.Enum(typeof(A)); A lhs = A.One; *************** *** 57,61 **** public void EqualsFalse() { ! IType type = NHibernate.Enum(typeof(A)); A lhs = A.One; --- 57,61 ---- public void EqualsFalse() { ! IType type = NHibernateUtil.Enum(typeof(A)); A lhs = A.One; Index: Int32TypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/Int32TypeFixture.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Int32TypeFixture.cs 20 Nov 2004 21:13:03 -0000 1.1 --- Int32TypeFixture.cs 17 Jan 2005 03:40:54 -0000 1.2 *************** *** 16,20 **** public void Next() { ! Int32Type type = (Int32Type)NHibernate.Int32; object current = (int)1; object next = type.Next( current ); --- 16,20 ---- public void Next() { ! Int32Type type = (Int32Type)NHibernateUtil.Int32; object current = (int)1; object next = type.Next( current ); *************** *** 28,32 **** public void Seed() { ! Int32Type type = (Int32Type)NHibernate.Int32; Assert.IsTrue( type.Seed is Int32, "seed should be Int32" ); } --- 28,32 ---- public void Seed() { ! Int32Type type = (Int32Type)NHibernateUtil.Int32; Assert.IsTrue( type.Seed is Int32, "seed should be Int32" ); } Index: SByteTypeFixture.cs =================================================================== RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate.Test/TypesTest/SByteTypeFixture.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SByteTypeFixture.cs 11 Dec 2004 20:08:19 -0000 1.1 --- SByteTypeFixture.cs 17 Jan 2005 03:40:54 -0000 1.2 *************** *** 16,20 **** public void Equals() { ! SByteType type = (SByteType)NHibernate.SByte; Assert.IsTrue( type.Equals( (sbyte)-1, (sbyte)-1 ) ); --- 16,20 ---- public void Equals() { ! SByteType type = (SByteType)NHibernateUtil.SByte; Assert.IsTrue( type.Equals( (sbyte)-1, (sbyte)-1 ) ); *************** *** 25,29 **** public void ObjectToSQLString() { ! SByteType type = (SByteType)NHibernate.SByte; Assert.AreEqual( "-1", type.ObjectToSQLString( (sbyte)-1 ) ); } --- 25,29 ---- public void ObjectToSQLString() { ! SByteType type = (SByteType)NHibernateUtil.SByte; Assert.AreEqual( "-1", type.ObjectToSQLString( (sbyte)-1 ) ); } *************** *** 32,36 **** public void StringToObject() { ! SByteType type = (SByteType)NHibernate.SByte; Assert.AreEqual( (sbyte)-1, type.StringToObject( "-1" ) ); } --- 32,36 ---- public void StringToObject() { ! SByteType type = (SByteType)NHibernateUtil.SByte; Assert.AreEqual( (sbyte)-1, type.StringToObject( "-1" ) ); } |