public void TestShortFormat() { short? d; string v; d = null; v = SqlFormat.ShortFormat(d); AssertAreEqual(v, "NULL", "Short? null"); d = 1456; v = SqlFormat.ShortFormat(d); AssertAreEqual(v, "1456", "short 1456"); v = SqlFormat.ShortFormat(short.MinValue, false); AssertAreEqual(v, "0", "Short min non null"); v = SqlFormat.ShortFormat(short.MaxValue, false); AssertAreEqual(v, "0", "Short min non null"); v = SqlFormat.ShortFormat(short.MinValue, true); AssertAreEqual(v, "NULL", "Short min null"); }