public void ReturnSameServerId() { var reader = new SequenceReader <byte>(); var info = (NatsInformation)NatsInformation.ParseMessage(new NatsMemoryPool(), _memory.Span, ref reader); Assert.Equal(_serverId, info.ServerId); }
public void ReturnNatsInformation() { var reader = new SequenceReader <byte>(); var info = NatsInformation.ParseMessage(new NatsMemoryPool(), _memory.Span, ref reader); Assert.IsType <NatsInformation>(info); }