public void FormatParameterName_ReturnsFormattedParameterName() { var expected = "?Parameter"; var dialect = new MySqlDialect(); var actual = dialect.FormatParameterName("Parameter"); Assert.Equal(expected, actual); }
public void FormatIdentifier_ReturnsFormattedTableName() { var expected = "`Users`"; var dialect = new MySqlDialect(); var actual = dialect.FormatIdentifier("Users"); Assert.Equal(expected, actual); }
public void WriteLimit_WritesLimit() { var expected = "LIMIT 42, 10"; var dialect = new MySqlDialect(); var builder = new StringBuilder(); using (TestSqlWriter writer = new TestSqlWriter(builder, dialect)) { dialect.WriteLimit(writer, 42, 10); } var actual = builder.ToString(); Assert.Equal(expected, actual); }