public VSClassifiedTextRun(string classificationTypeName, string text, VSClassifiedTextRunStyle style) { ClassificationTypeName = classificationTypeName ?? throw new ArgumentNullException(nameof(classificationTypeName)); Text = text ?? throw new ArgumentNullException(nameof(text)); Style = style; }
internal static void AssertExpectedClassification( VSClassifiedTextRun run, string expectedText, string expectedClassificationType, VSClassifiedTextRunStyle expectedClassificationStyle = VSClassifiedTextRunStyle.Plain) { Assert.Equal(expectedText, run.Text); Assert.Equal(expectedClassificationType, run.ClassificationTypeName); Assert.Equal(expectedClassificationStyle, run.Style); }
public VSClassifiedTextRun( string classificationTypeName, string text, Action navigationAction, string tooltip = null, VSClassifiedTextRunStyle style = VSClassifiedTextRunStyle.Plain) { ClassificationTypeName = classificationTypeName ?? throw new ArgumentNullException(nameof(classificationTypeName)); Text = text ?? throw new ArgumentNullException(nameof(text)); Style = style; NavigationAction = navigationAction ?? throw new ArgumentNullException(nameof(navigationAction)); Tooltip = tooltip; }