public void ToSqlInt16() { SqlByte testByte12 = new SqlByte(12); SqlByte testByte0 = new SqlByte(0); SqlByte testByte228 = new SqlByte(228); Assert.Equal((short)12, testByte12.ToSqlInt16().Value); Assert.Equal((short)0, testByte0.ToSqlInt16().Value); Assert.Equal((short)228, testByte228.ToSqlInt16().Value); }
public void ToSqlInt16() { SqlByte TestByte12 = new SqlByte(12); SqlByte TestByte0 = new SqlByte(0); SqlByte TestByte228 = new SqlByte(228); Assert.AreEqual((short)12, TestByte12.ToSqlInt16().Value, "ToSqInt16 method 1" + Error); Assert.AreEqual((short)0, TestByte0.ToSqlInt16().Value, "ToSqlInt16 method 2" + Error); Assert.AreEqual((short)228, TestByte228.ToSqlInt16().Value, "ToSqlInt16 method 3" + Error); }