public static void VerifyStandardProperty(DiagnosticAnalyzer analyzer, AnalyzerProperty property) { switch (property) { case AnalyzerProperty.Title: VerifyMessageTitle(analyzer); return; case AnalyzerProperty.Description: VerifyMessageDescription(analyzer); return; case AnalyzerProperty.HelpLink: VerifyMessageHelpLinkUri(analyzer); return; default: throw ExceptionUtilities.UnexpectedValue(property); } }
public void TestStandardProperty(AnalyzerProperty property) => VerifyCS.VerifyStandardProperty(property);
/// <summary> /// Verify standard properties of <typeparamref name="TAnalyzer"/>. /// </summary> /// <remarks> /// This validation method is largely specific to dotnet/roslyn scenarios. /// </remarks> public static void VerifyStandardProperty(AnalyzerProperty property) => CodeFixVerifierHelper.VerifyStandardProperty(new TAnalyzer(), property);