[cecil-tests] Fix string composition (#10781)

This commit is contained in:
Rolf Bjarne Kvinge 2021-03-04 16:40:53 +01:00 коммит произвёл GitHub
Родитель db6e0b9cf5
Коммит 01dfd6f2f5
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -20,7 +20,7 @@ namespace Cecil.Tests {
{
var assembly = Helper.GetAssembly (assemblyPath);
if (assembly == null)
Assert.Ignore ("{assemblyPath} could not be found (might be disabled in build)");
Assert.Ignore ($"{assemblyPath} could not be found (might be disabled in build)");
// look inside all .cctor (static constructor) inside `assemblyName`
foreach (var m in Helper.FilterMethods (assembly!, (m) => m.IsStatic && m.IsConstructor)) {
foreach (var ins in m.Body.Instructions) {
@ -57,7 +57,7 @@ namespace Cecil.Tests {
{
var assembly = Helper.GetAssembly (assemblyPath);
if (assembly == null) {
Assert.Ignore ("{assemblyPath} could not be found (might be disabled in build)");
Assert.Ignore ($"{assemblyPath} could not be found (might be disabled in build)");
return; // just to help nullability
}
@ -97,7 +97,7 @@ namespace Cecil.Tests {
var assembly = Helper.GetAssembly (assemblyPath);
if (assembly == null) {
Assert.Ignore ("{assemblyPath} could not be found (might be disabled in build)");
Assert.Ignore ($"{assemblyPath} could not be found (might be disabled in build)");
return; // just to help nullability
}
// this has a quite noticeable impact on (small) app size
@ -140,7 +140,7 @@ namespace Cecil.Tests {
{
var assembly = Helper.GetAssembly (assemblyPath);
if (assembly == null) {
Assert.Ignore ("{assemblyPath} could not be found (might be disabled in build)");
Assert.Ignore ($"{assemblyPath} could not be found (might be disabled in build)");
return; // just to help nullability
}
List<string> found = new List<string> ();
@ -170,7 +170,7 @@ namespace Cecil.Tests {
{
var assembly = Helper.GetAssembly (assemblyPath);
if (assembly == null) {
Assert.Ignore ("{assemblyPath} could not be found (might be disabled in build)");
Assert.Ignore ($"{assemblyPath} could not be found (might be disabled in build)");
return; // just to help nullability
}