public virtual void Short_literal_generated_correctly() { var typeMapping = new ShortTypeMapping("short", DbType.Int16); Test_GenerateSqlLiteral_helper(typeMapping, short.MinValue, "-32768"); Test_GenerateSqlLiteral_helper(typeMapping, short.MaxValue, "32767"); }
public virtual void GenerateSqlLiteral_for_Short_works_for_range_limits() { var typeMapping = new ShortTypeMapping("short", DbType.Int16); var literal = typeMapping.GenerateSqlLiteral(short.MinValue); Assert.Equal("-32768", literal); literal = typeMapping.GenerateSqlLiteral(short.MaxValue); Assert.Equal("32767", literal); }