Skip to content

Commit

Permalink
ClientName
Browse files Browse the repository at this point in the history
  • Loading branch information
shargon committed Oct 17, 2019
1 parent d8c1c3c commit 8a672ac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/TuringMachine.Core.Tests/FuzzerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ private void Test(FuzzerConnectionBase serverConnection, FuzzerConnectionBase cl
using (var server = new FuzzerServer())
using (var client = new FuzzerClient())
{
// Change name

client.PublicName = "TestClient_" + Guid.NewGuid().ToString();

// Ensure no error

client.SendLog(null);
Expand Down Expand Up @@ -143,7 +147,7 @@ private void Test(FuzzerConnectionBase serverConnection, FuzzerConnectionBase cl
Assert.IsTrue(waitInput.WaitOne(TimeSpan.FromSeconds(10)), "Waiting for inputs");

Assert.AreEqual(1, server.Connections.Count);
Assert.IsTrue(!string.IsNullOrEmpty(server.Connections.Values.FirstOrDefault()?.Source.Description));
Assert.IsTrue(server.Connections.Values.FirstOrDefault()?.Source.Description.Contains(client.PublicName));
Assert.AreNotEqual(Guid.Empty, server.Connections.Values.FirstOrDefault()?.Source.Id);
Assert.AreNotEqual(Guid.Empty, server.Connections.Values.FirstOrDefault()?.Id);

Expand Down

0 comments on commit 8a672ac

Please sign in to comment.