Exemplo n.º 1
0
        public void ToStringTest()
        {
            SqlString TestString;

            TestString = _sqlTrue.ToString();
            Assert.Equal("True", TestString.Value);

            TestString = _sqlFalse.ToSqlString();
            Assert.Equal("False", TestString.Value);
        }
Exemplo n.º 2
0
        public void ToStringTest()
        {
            SqlString TestString;

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

            TestString = SqlTrue.ToString();
            Assert.AreEqual("True", TestString.Value, error);

            TestString = SqlFalse.ToSqlString();
            Assert.AreEqual("False", TestString.Value, error);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Convert the value of SqlBoolean to string
        /// </summary>
        /// <param name="o"></param>
        /// <returns></returns>
        public static string SqlToString(SqlBoolean o)
        {
            string val;

            if (o.IsNull)
            {
                val = "false";
            }
            else
            {
                val = o.ToString();
            }
            return(val);
        }
Exemplo n.º 4
0
 public override string ToString() => _sql.ToString();
Exemplo n.º 5
0
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public override string ToString()
 {
     return(_sql.ToString());
 }