GenerateTokenHtmlEncodesValues() Unit Test fail
还没有人认领这个 Issue。
评估
调研方向
从 test/WebMatrix.WebData.Test/SimpleMembershipProviderTest.cs 中链接的行开始检查 GenerateTokenHtmlEncodesValues(),并运行失败的单元测试。检查测试的编码假设时,比较 generatedBytes 和数组长度,包括 Windows 区域设置或 Encoding.Default 是否会影响结果。确定原因并确认测试具有一致的预期行为后,即表示完成。
由索引模型根据 Issue 内容生成。
描述
The GenerateTokenHtmlEncodesValues() test method in the WebMatrix.WebData.Test\SimpleMembershipProviderTest.cs file, this test is failed.

The generatedBytes length is 17:

The array length is 16:

Is this a bug in this test method? Or I have to configure something such as Encoding.Default? I doubted it might be related to my Windows 10 locale setting?
- 主要语言
- C#
- 星标
- 897
- 派生
- 358
- 平均合并
- 40 分钟
- 30 天内合并 PR
- 1
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
aspnet/AspNetWebStack 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 45/100
aspnet/AspNetWebStack#431 · 1 条评论 ·
-
Needs: Author Feedback
难度 4/5 3-5 天 新手友好度 25/100
aspnet/AspNetWebStack#430 · 2 条评论 ·
-
Needs: Author Feedback
难度 4/5 3-5 天 新手友好度 25/100
aspnet/AspNetWebStack#429 · 1 条评论 ·
-
Needs: Author Feedback
难度 5/5 一周以上 新手友好度 25/100
aspnet/AspNetWebStack#428 · 1 条评论 ·
-
难度 3/5 1-2 天 新手友好度 45/100
aspnet/AspNetWebStack#407 · 1 条评论 ·
查看 aspnet/AspNetWebStack 的全部 Issue
相似的 Issue
-
bug frontend good first issue
难度 2/5 1-3 小时 新手友好度 75/100
-
NavigationViewItemAutomationPeer implements IInvokeProvider but never advertises the Invoke pattern 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
unoplatform/uno#24629 ·
-
agentic-workflows Needs: Triage :mag: State: In-PR
难度 2/5 1-3 小时 新手友好度 70/100
-
bug
难度 1/5 1 小时以内 新手友好度 90/100
-
Type: enhancement
难度 2/5 1-3 小时 新手友好度 65/100
apache/arrow-adbc#4809 ·