Skip to content

Commit

Permalink
Create FixTcp.DefaultConfig.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
alec1o committed Jun 6, 2024
1 parent 0e6b47a commit 06264e3
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions test/tcp/FixTcp.DefaultConfig.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
public partial class FixTcp
{
[Fact]
public void DefaultConfig()
{
Client();
Server();

void Client()
{
var client = new TCP.Client();
{
Assert.False(client.IsOpened);
Assert.True(client.IsFraming);
Assert.False(client.IsEncrypted);
Assert.False(string.IsNullOrWhiteSpace(client.Id));
Assert.NotNull(client.Host);
Assert.NotNull(client.On);
Assert.NotNull(client.To);
}
}

void Server()
{
var server = new TCP.Server();
{
Assert.False(server.IsOpened);
Assert.True(server.IsFraming);
Assert.False(server.IsEncrypted);
Assert.False(string.IsNullOrWhiteSpace(server.Id));
Assert.NotNull(server.Host);
Assert.NotNull(server.On);
Assert.NotNull(server.To);
Assert.NotNull(server.Clients);
Assert.Empty(server.Clients);
}
}
}
}

0 comments on commit 06264e3

Please sign in to comment.