Exemplo n.º 1
0
        public void ToSqlDouble()
        {
            SqlDouble sqlTestDouble;

            sqlTestDouble = _sqlTrue.ToSqlDouble();
            Assert.Equal(1, sqlTestDouble.Value);

            sqlTestDouble = _sqlFalse.ToSqlDouble();
            Assert.Equal(0, sqlTestDouble.Value);
        }
Exemplo n.º 2
0
        public void ToSqlDouble()
        {
            SqlDouble SqlTestDouble;

            String error = "ToSqlDouble method does not work correctly ";

            SqlTestDouble = SqlTrue.ToSqlDouble();
            Assert.AreEqual((double)1, SqlTestDouble.Value, error);

            SqlTestDouble = SqlFalse.ToSqlDouble();
            Assert.AreEqual((double)0, SqlTestDouble.Value, error);
        }
Exemplo n.º 3
0
        public void ToSqlDouble()
        {
            SqlDouble SqlTestDouble;

            string error = "ToSqlDouble method does not work correctly ";

            SqlTestDouble = _sqlTrue.ToSqlDouble();
            Assert.Equal(1, SqlTestDouble.Value);

            SqlTestDouble = _sqlFalse.ToSqlDouble();
            Assert.Equal(0, SqlTestDouble.Value);
        }