Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

ivan.zanolla

Wow, I'm tryng to add a unit test on my connection class that use WinScp and I would like an interface.

It's very important, I use WinScp dll often to do many things

I voted for this enhancement

Thanks
martin

Re: Feature Request: Implement ISession so we can mock

You can vote for the feature in the tracker:
https://winscp.net/tracker/856
smilesmile

Feature Request: Implement ISession so we can mock

Most of the action with the .NET assembly is via the Session class.
It would be nice to have Session implement an interface (e.g. ISession?) representing the public methods to allow developers to easily mock out the library for unit testing.