ToSqlDouble() public method

public ToSqlDouble ( ) : SqlDouble
return SqlDouble
Beispiel #1
0
		public void ToSqlDouble()
		{
			SqlByte TestByte12 = new SqlByte(12);
			SqlByte TestByte0 = new SqlByte(0);
			SqlByte TestByte228 = new SqlByte(228);

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

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

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