public void WriteIPAddress() { var text = new StringWriter(); var writer = new PresentationWriter(text); writer.WriteIPAddress(IPAddress.Loopback); writer.WriteIPAddress(IPAddress.IPv6Loopback, appendSpace: false); Assert.AreEqual("127.0.0.1 ::1", text.ToString()); }
/// <inheritdoc /> public override void WriteData(PresentationWriter writer) { writer.WriteIPAddress(Address, appendSpace: false); }