Beispiel #1
0
        public async Task MessageID_Increments()
        {
            var ns = new PubSubService {
                LocalPeer = self
            };
            await ns.StartAsync();

            try
            {
                var a = ns.CreateMessage("topic", new byte[0]);
                var b = ns.CreateMessage("topic", new byte[0]);
                Assert.IsTrue(string.Compare(b.MessageId, a.MessageId, StringComparison.Ordinal) > 0);
            }
            finally
            {
                await ns.StopAsync();
            }
        }