Update of /cvsroot/nhibernate/NHibernateContrib/src/Nullables.Tests/NHibernate
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18737/Nullables.Tests/NHibernate
Modified Files:
NullablesClass.cs NullablesClass.hbm.xml NullablesFixture.cs
Log Message:
Add NullableSByte int Nullables.NHibernate and added to test fixture.
Index: NullablesFixture.cs
===================================================================
RCS file: /cvsroot/nhibernate/NHibernateContrib/src/Nullables.Tests/NHibernate/NullablesFixture.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** NullablesFixture.cs 12 Nov 2004 22:08:27 -0000 1.1
--- NullablesFixture.cs 17 Feb 2005 14:03:06 -0000 1.2
***************
*** 54,57 ****
--- 54,58 ----
Assert.AreEqual( NullableInt32.Default, nullNC.Int32Prop );
Assert.AreEqual( NullableInt64.Default, nullNC.Int64Prop );
+ Assert.AreEqual( NullableSByte.Default, nullNC.SByteProp );
Assert.AreEqual( NullableSingle.Default, nullNC.SingleProp );
***************
*** 111,114 ****
--- 112,116 ----
nc.Int32Prop = NullableInt32.Default;
nc.Int64Prop = NullableInt64.Default;
+ nc.SByteProp = NullableSByte.Default;
nc.SingleProp = NullableSingle.Default;
***************
*** 130,133 ****
--- 132,136 ----
nc.Int32Prop = Int32.MaxValue;
nc.Int64Prop = Int64.MaxValue;
+ nc.SByteProp = SByte.MaxValue;
nc.SingleProp = 4.3f;
Index: NullablesClass.hbm.xml
===================================================================
RCS file: /cvsroot/nhibernate/NHibernateContrib/src/Nullables.Tests/NHibernate/NullablesClass.hbm.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** NullablesClass.hbm.xml 12 Nov 2004 22:08:27 -0000 1.1
--- NullablesClass.hbm.xml 17 Feb 2005 14:03:06 -0000 1.2
***************
*** 35,38 ****
--- 35,41 ----
type="Nullables.NHibernate.NullableInt64Type, Nullables.NHibernate"
/>
+ <property name="SByteProp" column="null_sby"
+ type="Nullables.NHibernate.NullableSByteType, Nullables.NHibernate"
+ />
<property name="SingleProp" column="null_sing"
type="Nullables.NHibernate.NullableSingleType, Nullables.NHibernate"
Index: NullablesClass.cs
===================================================================
RCS file: /cvsroot/nhibernate/NHibernateContrib/src/Nullables.Tests/NHibernate/NullablesClass.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** NullablesClass.cs 12 Nov 2004 22:08:27 -0000 1.1
--- NullablesClass.cs 17 Feb 2005 14:03:06 -0000 1.2
***************
*** 20,23 ****
--- 20,24 ----
private NullableInt32 _int32Prop;
private NullableInt64 _int64Prop;
+ private NullableSByte _sbyteProp;
private NullableSingle _singleProp;
***************
*** 93,96 ****
--- 94,103 ----
}
+ public NullableSByte SByteProp
+ {
+ get { return _sbyteProp; }
+ set { _sbyteProp = value; }
+ }
+
public NullableSingle SingleProp
{
|