未验证 提交 881528b9 编写于 作者: Y Youssef Victor 提交者: GitHub

Make assertion more informative

上级 514143a9
......@@ -260,7 +260,8 @@ private TestParameters WithScriptOptions(TestParameters parameters)
using (var workspace = CreateWorkspaceFromOptions(initialMarkup, parameters))
{
var (actions, _) = await GetCodeActionsAsync(workspace, parameters);
Assert.True(actions.Length == 0, "An action was offered when none was expected");
var offeredActions = Environment.NewLine + string.Join(Environment.NewLine, actions.Select(action => action.Title));
Assert.True(actions.Length == 0, "An action was offered when none was expected. Offered actions:" + offeredActions);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册