gpt4 book ai didi

c# - 为什么我的单元测试没有运行测试就成功完成了?

转载 作者:行者123 更新时间:2023-11-30 21:10:36 28 4
gpt4 key购买 nike

我在运行单元测试时遇到以下错误:

completed successfully without running the test. This can occur when configuring the Web application for testing fails (an ASP.NET server error occurs when processing the request), or when no ASP.NET page is executed (the URL may point to an HTML page, a Web service, or a directory listing). Running tests in ASP.NET requires the URL to resolve to an ASP.NET page and for the page to execute properly up to the Load event. The response from the request is stored in the file 'WebRequestResponse_populateData.html' with the test results; typically this file can be opened with a Web browser to view its contents.

我不确定这是什么意思。您有任何我可以研究的指示吗?

最佳答案

将属性 UrlToTest 设置为 Url In 测试。喜欢:

[UrlToTest("URL your testing")]

关于c# - 为什么我的单元测试没有运行测试就成功完成了?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8385115/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com