ToSqlBoolean() public method

public ToSqlBoolean ( ) : SqlBoolean
return SqlBoolean
Beispiel #1
0
		public void ToSqlBoolean()
		{

			SqlByte TestByte12 = new SqlByte(12);
			SqlByte TestByte0 = new SqlByte(0);
			SqlByte TestByteNull = SqlByte.Null;

			Assert.IsTrue (TestByte12.ToSqlBoolean().Value, "ToSqlBoolean method 1" + Error);
			Assert.IsTrue (!TestByte0.ToSqlBoolean().Value, "ToSqlBoolean method 2" + Error);
			Assert.IsTrue (TestByteNull.ToSqlBoolean().IsNull, "ToSqlBoolean method 3" + Error);
		}
Beispiel #2
0
 /// <summary>
 /// Converts the value of the specified SqlByte to its equivalent SqlBoolean representation.
 /// </summary>
 /// <param name="value">An SqlByte.</param>
 /// <returns>The equivalent SqlBoolean.</returns>
 public static SqlBoolean ToSqlBoolean(SqlByte value) { return value.ToSqlBoolean(); }
Beispiel #3
0
		/// <summary>Converts the value from <c>SqlByte</c> to an equivalent <c>SqlBoolean</c> value.</summary>
		public static SqlBoolean ToSqlBoolean(SqlByte p)         { return p.ToSqlBoolean(); }
Beispiel #4
0
        public void ToSqlBoolean()
        {
            SqlByte TestByte12 = new SqlByte(12);
            SqlByte TestByte0 = new SqlByte(0);
            SqlByte TestByteNull = SqlByte.Null;

            Assert.True(TestByte12.ToSqlBoolean().Value);
            Assert.True(!TestByte0.ToSqlBoolean().Value);
            Assert.True(TestByteNull.ToSqlBoolean().IsNull);
        }
		public void ToSqlBoolean()
		{

			SqlByte TestByte12 = new SqlByte(12);
			SqlByte TestByte0 = new SqlByte(0);
			SqlByte TestByteNull = SqlByte.Null;

			Assert("ToSqlBoolean method 1" + Error, TestByte12.ToSqlBoolean().Value);
			Assert("ToSqlBoolean method 2" + Error, !TestByte0.ToSqlBoolean().Value);
			Assert("ToSqlBoolean method 3" + Error, TestByteNull.ToSqlBoolean().IsNull);
		}