Keer
Keer

Reputation: 37

Mock FtpClient for Unit Test - C#

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?

Upvotes: 0

Views: 416

Answers (0)

Related Questions