Beispiel #1
0
        public void ClientIdentifier_ToString_WithServer()
        {
            var identifier = new ClientIdentifier("Foo", "Bar", ClientSettings.NoPort, Guid.Empty);

            Assert.AreEqual("Foo (Bar)", identifier.ToString());
        }
Beispiel #2
0
        public void ClientIdentifier_ToString_WithOnlyName()
        {
            var identifier = new ClientIdentifier("Foo", null, ClientSettings.NoPort, Guid.Empty);

            Assert.AreEqual("Foo", identifier.ToString());
        }
Beispiel #3
0
        public void ClientIdentifier_ToString_WithServerAndPort()
        {
            var identifier = new ClientIdentifier("Foo", "Bar", ClientSettings.DefaultPort, Guid.Empty);

            Assert.AreEqual($"Foo (Bar:{ClientSettings.DefaultPort})", identifier.ToString());
        }