public void ClientIdentifier_ToString_WithServer() { var identifier = new ClientIdentifier("Foo", "Bar", ClientSettings.NoPort, Guid.Empty); Assert.AreEqual("Foo (Bar)", identifier.ToString()); }
public void ClientIdentifier_ToString_WithOnlyName() { var identifier = new ClientIdentifier("Foo", null, ClientSettings.NoPort, Guid.Empty); Assert.AreEqual("Foo", identifier.ToString()); }
public void ClientIdentifier_ToString_WithServerAndPort() { var identifier = new ClientIdentifier("Foo", "Bar", ClientSettings.DefaultPort, Guid.Empty); Assert.AreEqual($"Foo (Bar:{ClientSettings.DefaultPort})", identifier.ToString()); }