Mock FtpClient for Unit Test - C#

183 Views Asked by At

I am writing unit tests in C# using the Moq framework. How can I mock the following line of code?

FtpClient client = new (Host, Username, Password, Port);
client.Connect();

What should I put in place of the above parameters, because I get an error no such host is known or failed to connect to host?

0

There are 0 best solutions below