csharpier
csharpier copied to clipboard
LeadingComment + MethodInvocation in ConditionalExpression
We may want to turn the leading comment into a trailing comment on : but we haven't really moved around comments yet Also the Split method breaking is weird. it should break on the . of the method calls first
var expectedDiagnostic = outOfMemory
? $"ENC0089: {string.Format(Some_Thing, "1")}"
:
// leading Comment
$"ENC0080: {string.Format(Some_Thing, "2", "SomeLongerThing")}".Split(
'\n'
)
.First();