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

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

            Assert.AreEqual((long)12, TestByte12.ToSqlInt64().Value, "ToSqInt64 method " + Error);
            Assert.AreEqual((long)0, TestByte0.ToSqlInt64().Value, "ToSqlInt64 method 2" + Error);
            Assert.AreEqual((long)228, TestByte228.ToSqlInt64().Value, "ToSqlInt64 method 3" + Error);
        }