Skip to content

Conversation

Scott-Lyons
Copy link

Fixes #10

Message WriteLineAndGetReply(string data, TimeSpan timeout);
}

public class SimpleTcpClient : ISimpleTcpClient, IDisposable

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd pull the IDisposable inheritance into the ISimpleTcpClient interface?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree!

@BrandonPotter
Copy link
Owner

Haven't reviewed yet - you guys know if this breaks any existing usage (is this a major or minor rev)?

@yarimiz
Copy link

yarimiz commented Aug 21, 2018

Any idea when this PR is going to be merged and released?

bool AutoTrimStrings { get; set; }
SimpleTcpClient Connect(string hostNameOrIpAddress, int port);
SimpleTcpClient Disconnect();
TcpClient TcpClient { get; }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As long as .NET's TcpClient is not interfaced, ISimpleTcpClient won't help to mock Connected property.

@Scott-Lyons
Copy link
Author

I raised this PR a while ago due to not being able to mock the SimpleTcpClient (and thus making testing more difficult). At the time I worked around this issue (rather than waiting for the merge).

As of right now I am no longer using the SimpleTcpClient and given the time taken to get this PR merged, I'm assuming it's not that much use to anyone else, so could probably be closed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants