예제 #1
0
        public void ToSqlSingle()
        {
            SqlByte testByte12  = new SqlByte(12);
            SqlByte testByte0   = new SqlByte(0);
            SqlByte testByte228 = new SqlByte(228);

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

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