public void WriteTimeSpan16() { var text = new StringWriter(); var writer = new PresentationWriter(text); writer.WriteTimeSpan16(TimeSpan.FromSeconds(ushort.MaxValue)); writer.WriteTimeSpan16(TimeSpan.Zero, appendSpace: false); Assert.AreEqual("65535 0", text.ToString()); }
/// <inheritdoc /> public override void WriteData(PresentationWriter writer) { writer.WriteDomainName(Algorithm); writer.WriteDateTime(TimeSigned); writer.WriteTimeSpan16(Fudge); writer.WriteBase64String(MAC); writer.WriteUInt16(OriginalMessageId); writer.WriteUInt16((ushort)Error); writer.WriteBase64String(OtherData ?? NoData, appendSpace: false); }