mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-25 01:25:40 -05:00
Address warnings and (some) nullables (#2013)
This commit is contained in:
@@ -113,7 +113,7 @@ namespace Microsoft.SqlTools.ServiceLayer.UnitTests.AutoParameterization
|
||||
// SQL greater than 300000 characters should throw
|
||||
string bigSql = string.Concat(Repeat(element: sqlLength_300, count: 1100));
|
||||
DbCommand command2 = new SqlCommand { CommandText = bigSql };
|
||||
Assert.Throws<ParameterizationScriptTooLargeException>(() => command2.Parameterize());
|
||||
Assert.Throws<ParameterizationScriptTooLargeException>(command2.Parameterize);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -128,7 +128,7 @@ namespace Microsoft.SqlTools.ServiceLayer.UnitTests.AutoParameterization
|
||||
string sql = string.Concat(Repeat(element: invalidSql, count: 1000));
|
||||
DbCommand command = new SqlCommand { CommandText = sql };
|
||||
|
||||
Assert.Throws<ParameterizationParsingException>(() => command.Parameterize());
|
||||
Assert.Throws<ParameterizationParsingException>(command.Parameterize);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -149,7 +149,7 @@ namespace Microsoft.SqlTools.ServiceLayer.UnitTests.AutoParameterization
|
||||
GO";
|
||||
|
||||
DbCommand command = new SqlCommand { CommandText = sql };
|
||||
Assert.Throws<ParameterizationFormatException>(() => command.Parameterize());
|
||||
Assert.Throws<ParameterizationFormatException>(command.Parameterize);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user