public void ToString_CommentsIsNull() { var sshIdentification = new SshIdentification("2.0", "SSH.NET_2020.0.0"); Assert.AreEqual("SSH-2.0-SSH.NET_2020.0.0", sshIdentification.ToString()); sshIdentification = new SshIdentification("2.0", "SSH.NET_2020.0.0", null); Assert.AreEqual("SSH-2.0-SSH.NET_2020.0.0", sshIdentification.ToString()); }
public void ToString_Comments() { var sshIdentification = new SshIdentification("2.0", "SSH.NET", "Beware, dangerous"); Assert.AreEqual("SSH-2.0-SSH.NET Beware, dangerous", sshIdentification.ToString()); }