Resolve 8 critical SonarQube issues (BLOCKER + CRITICAL non-S3776) #2
@@ -1,6 +1,6 @@
|
||||
using Strata.SqlTools.Visitors.PostgreSql;
|
||||
|
||||
namespace Strata.SqlTools.PostgreSql.Tests.PostgreSql;
|
||||
namespace Strata.SqlTools.SqlBreakdown.Tests.PostgreSql;
|
||||
|
||||
[TestFixture]
|
||||
public class CommandVisitorTests
|
||||
@@ -24,11 +24,10 @@ public class CommandVisitorTests
|
||||
{
|
||||
var method = typeof(CommandVisitor).GetMethod(
|
||||
"FormatParameterName",
|
||||
System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Public)
|
||||
?? typeof(Strata.SqlTools.Visitors.SqlServer.CommandVisitor).GetMethod(
|
||||
"FormatParameterName",
|
||||
System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic);
|
||||
Assert.That(method, Is.Not.Null, "FormatParameterName must exist as a protected method on the visitor hierarchy");
|
||||
System.Reflection.BindingFlags.Instance
|
||||
| System.Reflection.BindingFlags.NonPublic
|
||||
| System.Reflection.BindingFlags.Public);
|
||||
Assert.That(method, Is.Not.Null, "FormatParameterName must exist as a protected override on CommandVisitor");
|
||||
return (string)method!.Invoke(visitor, new object[] { name })!;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user