You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 14, 2022. It is now read-only.
?$"Expected {GetName()} to have reference of type '{referenceKind}'{{reason}}, but reference in module '{moduleName}' at {RangeToString(range)} has type '{candidate._kind}'"
122
+
?$"Expected {GetSubjectName()} to have reference of type '{referenceKind}'{{reason}}, but reference in module '{moduleName}' at {range.ToString()} has type '{candidate._kind}'"
126
123
:string.Empty;
127
124
}
128
125
129
-
varerrorMessage=$"Expected {GetName()} to have reference at {RangeToString(range)}{{reason}}, but module '{moduleName}' has no references at that range.";
126
+
varerrorMessage=$"Expected {GetSubjectName()} to have reference at {range.ToString()}{{reason}}, but module '{moduleName}' has no references at that range.";
return$"Expected {{context:subject}} to have only one text edit with newText '{{expectedText}}' and range {{expectedRange}}{{reason}}, but there are {candidatesWithRange.Length}";
98
+
}
99
+
100
+
if(candidatesWithRange.Length==0){
101
+
return"Expected {context:subject} to have text edit with newText \'{expectedText}\' in range {expectedRange}{reason}, but "
102
+
+(candidates.Length==1
103
+
?$"it has range {candidates[0].range.ToString()}"
104
+
:$"they are in ranges {string.Join(", ",candidates.Select(te =>te.range.ToString()))}");
0 commit comments