ToSqlInt32() public method

public ToSqlInt32 ( ) : SqlInt32
return SqlInt32
Exemplo n.º 1
0
		public void ToSqlInt32()
		{

			SqlByte TestByte12 = new SqlByte(12);
			SqlByte TestByte0 = new SqlByte(0);
			SqlByte TestByte228 = new SqlByte(228);
			
			Assert.AreEqual((int)12, TestByte12.ToSqlInt32().Value, "ToSqInt32 method 1" + Error);
			Assert.AreEqual((int)0, TestByte0.ToSqlInt32().Value, "ToSqlInt32 method 2" + Error);
			Assert.AreEqual((int)228, TestByte228.ToSqlInt32().Value, "ToSqlInt32 method 3" + Error);

		}
Exemplo n.º 2
0
		/// <summary>Converts the value from <c>SqlByte</c> to an equivalent <c>SqlInt32</c> value.</summary>
		public static SqlInt32 ToSqlInt32(SqlByte    p) { return p.ToSqlInt32();                                                                    }
Exemplo n.º 3
0
 /// <summary>
 /// Converts the value of the specified SqlByte to its equivalent SqlInt32 representation.
 /// </summary>
 /// <param name="value">An SqlByte.</param>
 /// <returns>The equivalent SqlInt32.</returns>
 public static SqlInt32 ToSqlInt32(SqlByte value) { return value.ToSqlInt32(); }
Exemplo n.º 4
0
        public void ToSqlInt32()
        {
            SqlByte TestByte12 = new SqlByte(12);
            SqlByte TestByte0 = new SqlByte(0);
            SqlByte TestByte228 = new SqlByte(228);

            Assert.Equal(12, TestByte12.ToSqlInt32().Value);
            Assert.Equal(0, TestByte0.ToSqlInt32().Value);
            Assert.Equal(228, TestByte228.ToSqlInt32().Value);
        }