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

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

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