我正在尝试使用以下代码进行单元测试,但我不能这样做。 您想检查一下并给我一个指南。 干杯
Public Function ClientNotFound(ByVal client As Guid?) As ActionResult
ViewData.Item("ClientGuid") = client
Return View()
End Function
---------
my solution:
<TestMethod()>
Public Sub ClientNotFound_WhenCalled_Returnview()
Dim Basecontroller As New BaseController
Dim result = Basecontroller.ClientNotFound()
End Sub