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); }
/// <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(); }
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()); }
/// <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()); }