ToString() public method

public ToString ( ) : string
return string
Esempio n. 1
0
		public void ToStringTest()
		{

			SqlByte TestByte12 = new SqlByte(12);
			SqlByte TestByte0 = new SqlByte(0);
			SqlByte TestByte228 = new SqlByte(228);
			
			Assert.AreEqual("12", TestByte12.ToString(), "ToString method 1" + Error);
			Assert.AreEqual("0", TestByte0.ToString(), "ToString method 2" + Error);
			Assert.AreEqual("228", TestByte228.ToString(), "ToString method 3" + Error);
		}
Esempio n. 2
0
 /// <summary>
 /// Converts the value of the specified SqlByte to its equivalent String representation.
 /// </summary>
 /// <param name="value">An SqlByte.</param>
 /// <returns>The String equivalent of the SqlByte.</returns>        
 public static String ToString(SqlByte value) { return value.ToString(); }
Esempio n. 3
0
        public void ToStringTest()
        {
            SqlByte TestByte12 = new SqlByte(12);
            SqlByte TestByte0 = new SqlByte(0);
            SqlByte TestByte228 = new SqlByte(228);

            Assert.Equal("12", TestByte12.ToString());
            Assert.Equal("0", TestByte0.ToString());
            Assert.Equal("228", TestByte228.ToString());
        }
Esempio n. 4
0
		/// <summary>Converts the value from <c>SqlByte</c> to an equivalent <c>String</c> value.</summary>
		public static String ToString(SqlByte         p) { return p.ToString();                                                                                          }
		public void ToStringTest()
		{

			SqlByte TestByte12 = new SqlByte(12);
			SqlByte TestByte0 = new SqlByte(0);
			SqlByte TestByte228 = new SqlByte(228);
			
			AssertEquals("ToString method 1" + Error,
				     "12", TestByte12.ToString());
			AssertEquals("ToString method 2" + Error,
				     "0", TestByte0.ToString());
			AssertEquals("ToString method 3" + Error,
				     "228", TestByte228.ToString());
		}