Skip to content

Fixing AppendFormat issue + unit tests#300

Merged
danjagnow merged 1 commit intosolarwinds:masterfrom
superzer0:feature/NCM-7385-fixed-append-format
Oct 4, 2021
Merged

Fixing AppendFormat issue + unit tests#300
danjagnow merged 1 commit intosolarwinds:masterfrom
superzer0:feature/NCM-7385-fixed-append-format

Conversation

@superzer0
Copy link

@superzer0 superzer0 commented Oct 4, 2021

Fixes https://jira.solarwinds.com/browse/NCM-8025

System.FormatException: Input string was not in a correct format. at System.Text.StringBuilder.FormatError() at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args) at System.Text.StringBuilder.AppendFormat(String format, Object[] args) at SwqlStudio.DocumentationBuilder.ToToolTip(ITypedMetadata metadata, IObsoleteMetadata obsoleteMetadata) at SwqlStudio.TreeNodesBuilder.AddPropertiesToNode(IMetadataProvider provider, TreeNode entityNode, IEnumerable1 properties)`

Copy link
Contributor

@danjagnow danjagnow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for adding StringBuilderExtensionsTests.


if (entity.IsIndication)
{

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: Why the blank line here?

@danjagnow danjagnow merged commit e7b9675 into solarwinds:master Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants