Ejemplo n.º 1
0
        public void ToSqlInt32()
        {
            SqlByte testByte12  = new SqlByte(12);
            SqlByte testByte0   = new SqlByte(0);
            SqlByte testByte228 = new SqlByte(228);

            Assert.Equal(12, testByte12.ToSqlInt32().Value);
            Assert.Equal(0, testByte0.ToSqlInt32().Value);
            Assert.Equal(228, testByte228.ToSqlInt32().Value);
        }
Ejemplo n.º 2
0
        public void ToSqlInt32()
        {
            SqlByte TestByte12  = new SqlByte(12);
            SqlByte TestByte0   = new SqlByte(0);
            SqlByte TestByte228 = new SqlByte(228);

            Assert.AreEqual((int)12, TestByte12.ToSqlInt32().Value, "ToSqInt32 method 1" + Error);
            Assert.AreEqual((int)0, TestByte0.ToSqlInt32().Value, "ToSqlInt32 method 2" + Error);
            Assert.AreEqual((int)228, TestByte228.ToSqlInt32().Value, "ToSqlInt32 method 3" + Error);
        }