Resolve SonarQube Tech Debt #3
@@ -15,9 +15,12 @@ public class CommandVisitorTests
|
|||||||
var param1b = InvokeFormatParameterName(visitor1, "p");
|
var param1b = InvokeFormatParameterName(visitor1, "p");
|
||||||
var param2a = InvokeFormatParameterName(visitor2, "p");
|
var param2a = InvokeFormatParameterName(visitor2, "p");
|
||||||
|
|
||||||
Assert.That(param1a, Is.EqualTo("$1"), "first visitor's first parameter should be $1");
|
Assert.Multiple(() =>
|
||||||
Assert.That(param1b, Is.EqualTo("$2"), "first visitor's second parameter should be $2");
|
{
|
||||||
Assert.That(param2a, Is.EqualTo("$1"), "second visitor must start at $1, not inherit visitor1's counter");
|
Assert.That(param1a, Is.EqualTo("$1"), "first visitor's first parameter should be $1");
|
||||||
|
Assert.That(param1b, Is.EqualTo("$2"), "first visitor's second parameter should be $2");
|
||||||
|
Assert.That(param2a, Is.EqualTo("$1"), "second visitor must start at $1, not inherit visitor1's counter");
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private static string InvokeFormatParameterName(CommandVisitor visitor, string name)
|
private static string InvokeFormatParameterName(CommandVisitor visitor, string name)
|
||||||
|
|||||||
Reference in New Issue
Block a user