跟进 Razor 编译器测试中 xUnit1051 问题的解决
作者: mwiemer-microsoft创建于 2026年9月30日更新于 2026年10月1日
标签Area-Razor-Compiler
由 AI 生成: xUnit v3 迁移中在 `src/Razor/src/Compiler/.editorconfig` 中添加了对 xUnit1051 的抑制。请跟踪迁移所影响的测试调用,并在适当的情况下使用 `TestContext.Current.CancellationToken`,然后删除抑制。此抑制是来自测试框架迁移的临时兼容性债务,而不是产品代码行为的变化。
内容来源: dotnet/roslyn