public void ToSqlMoney()
        {
            SqlByte testByte12  = new SqlByte(12);
            SqlByte testByte0   = new SqlByte(0);
            SqlByte testByte228 = new SqlByte(228);

            Assert.Equal(12M, testByte12.ToSqlMoney().Value);
            Assert.Equal(0, testByte0.ToSqlMoney().Value);
            Assert.Equal(228M, testByte228.ToSqlMoney().Value);
        }
Exemple #2
0
        public void ToSqlMoney()
        {
            SqlByte TestByte12  = new SqlByte(12);
            SqlByte TestByte0   = new SqlByte(0);
            SqlByte TestByte228 = new SqlByte(228);

            Assert.AreEqual(12.0000M, TestByte12.ToSqlMoney().Value, "ToSqMoney method 1" + Error);
            Assert.AreEqual((decimal)0, TestByte0.ToSqlMoney().Value, "ToSqlMoney method 2" + Error);
            Assert.AreEqual(228.0000M, TestByte228.ToSqlMoney().Value, "ToSqlMoney method 3" + Error);
        }