if (!found)
{
- Diag(DiagnosticDescriptors.TemplateHasNoCorrespondingArgument, ma.GetLocation(), t);
+ Diag(DiagnosticDescriptors.TemplateHasNoCorrespondingArgument, ma.GetLocation(), t.Key);
}
}
}
<value>Argument is not referenced from the logging message</value>
</data>
<data name="TemplateHasNoCorrespondingArgumentMessage" xml:space="preserve">
- <value>Template {0} is not provided as argument to the logging method</value>
+ <value>Template '{0}' is not provided as argument to the logging method</value>
</data>
<data name="TemplateHasNoCorrespondingArgumentTitle" xml:space="preserve">
<value>Logging template has no corresponding method argument</value>
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentMessage">
- <source>Template {0} is not provided as argument to the logging method</source>
- <target state="new">Template {0} is not provided as argument to the logging method</target>
+ <source>Template '{0}' is not provided as argument to the logging method</source>
+ <target state="new">Template '{0}' is not provided as argument to the logging method</target>
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentTitle">
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentMessage">
- <source>Template {0} is not provided as argument to the logging method</source>
- <target state="new">Template {0} is not provided as argument to the logging method</target>
+ <source>Template '{0}' is not provided as argument to the logging method</source>
+ <target state="new">Template '{0}' is not provided as argument to the logging method</target>
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentTitle">
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentMessage">
- <source>Template {0} is not provided as argument to the logging method</source>
- <target state="new">Template {0} is not provided as argument to the logging method</target>
+ <source>Template '{0}' is not provided as argument to the logging method</source>
+ <target state="new">Template '{0}' is not provided as argument to the logging method</target>
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentTitle">
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentMessage">
- <source>Template {0} is not provided as argument to the logging method</source>
- <target state="new">Template {0} is not provided as argument to the logging method</target>
+ <source>Template '{0}' is not provided as argument to the logging method</source>
+ <target state="new">Template '{0}' is not provided as argument to the logging method</target>
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentTitle">
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentMessage">
- <source>Template {0} is not provided as argument to the logging method</source>
- <target state="new">Template {0} is not provided as argument to the logging method</target>
+ <source>Template '{0}' is not provided as argument to the logging method</source>
+ <target state="new">Template '{0}' is not provided as argument to the logging method</target>
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentTitle">
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentMessage">
- <source>Template {0} is not provided as argument to the logging method</source>
- <target state="new">Template {0} is not provided as argument to the logging method</target>
+ <source>Template '{0}' is not provided as argument to the logging method</source>
+ <target state="new">Template '{0}' is not provided as argument to the logging method</target>
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentTitle">
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentMessage">
- <source>Template {0} is not provided as argument to the logging method</source>
- <target state="new">Template {0} is not provided as argument to the logging method</target>
+ <source>Template '{0}' is not provided as argument to the logging method</source>
+ <target state="new">Template '{0}' is not provided as argument to the logging method</target>
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentTitle">
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentMessage">
- <source>Template {0} is not provided as argument to the logging method</source>
- <target state="new">Template {0} is not provided as argument to the logging method</target>
+ <source>Template '{0}' is not provided as argument to the logging method</source>
+ <target state="new">Template '{0}' is not provided as argument to the logging method</target>
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentTitle">
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentMessage">
- <source>Template {0} is not provided as argument to the logging method</source>
- <target state="new">Template {0} is not provided as argument to the logging method</target>
+ <source>Template '{0}' is not provided as argument to the logging method</source>
+ <target state="new">Template '{0}' is not provided as argument to the logging method</target>
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentTitle">
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentMessage">
- <source>Template {0} is not provided as argument to the logging method</source>
- <target state="new">Template {0} is not provided as argument to the logging method</target>
+ <source>Template '{0}' is not provided as argument to the logging method</source>
+ <target state="new">Template '{0}' is not provided as argument to the logging method</target>
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentTitle">
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentMessage">
- <source>Template {0} is not provided as argument to the logging method</source>
- <target state="new">Template {0} is not provided as argument to the logging method</target>
+ <source>Template '{0}' is not provided as argument to the logging method</source>
+ <target state="new">Template '{0}' is not provided as argument to the logging method</target>
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentTitle">
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentMessage">
- <source>Template {0} is not provided as argument to the logging method</source>
- <target state="new">Template {0} is not provided as argument to the logging method</target>
+ <source>Template '{0}' is not provided as argument to the logging method</source>
+ <target state="new">Template '{0}' is not provided as argument to the logging method</target>
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentTitle">
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentMessage">
- <source>Template {0} is not provided as argument to the logging method</source>
- <target state="new">Template {0} is not provided as argument to the logging method</target>
+ <source>Template '{0}' is not provided as argument to the logging method</source>
+ <target state="new">Template '{0}' is not provided as argument to the logging method</target>
<note />
</trans-unit>
<trans-unit id="TemplateHasNoCorrespondingArgumentTitle">
Assert.Single(diagnostics);
Assert.Equal(DiagnosticDescriptors.TemplateHasNoCorrespondingArgument.Id, diagnostics[0].Id);
+ Assert.Contains("Template 'foo' is not provided as argument to the logging method", diagnostics[0].GetMessage(), StringComparison.InvariantCulture);
}
[Fact]