내 MVC 응용 프로그램의 프로젝트 URL이 로컬 호스트와 같은 호스팅되는 특정 URL을 확인NUNIT 테스트
: 사용 승인 도서관The Following error occurred while connecting to:
http: // localhost: 8080/ Scope/_index
error:
The remote server returned an error: (404) Not Found.
[Test]
[UseReporter(typeof(FileLauncherReporter),typeof(ClipboardReporter))]
public void PaymentPopUpController_IndexView()
{
//Arrange
PortFactory.MvcPort = 8080;
// Act
Func<ActionResult> ScopeControllerTest = new ScopeController()._Index;
// Approve
MvcApprovals.VerifyMvcPage(ScopeControllerTest);
}
MvcApprovals.VerifyMvcPage 내가 바로 프로젝트 URL을 설정하지 않았기 때문에이 URL을 찾을 수 없다는 오류가 발생합니다 테스트
내 질문은 mvc 승인 테스트를 위해 nunit으로 설정할 올바른 URL을 설정하는 방법입니다.