我正在使用 Moq 框架用 C# 编写单元测试。我如何模拟以下代码行?
FtpClient client = new (Host, Username, Password, Port); client.Connect();
我应该用什么来代替上述参数,因为我收到错误
no such host is known or failed to connect to host