Example #1
0
        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());
        }
Example #2
0
 /// <inheritdoc />
 public override void WriteData(PresentationWriter writer)
 {
     writer.WriteIPAddress(Address, appendSpace: false);
 }