コード例 #1
0
        public void should_serialize_messages()
        {
            var prebuildObjectTypes = new object[]
            {
                MessageId.NextId(),
                new MessageTypeId("X"),
                new TransportMessage(new MessageTypeId("lol"), new byte[] { 1, 2, 3 }, new PeerId("peer"), "endpoint", MessageId.NextId()),
                new BindingKey("Abc", "123"),
                new Peer(new PeerId("Abc.Testing.0"), "tcp://abctest:123", true, true),
            };

            MessageSerializationTester.CheckSerializationForTypesInSameAssemblyAs <IBus>(prebuildObjectTypes);
        }
コード例 #2
0
 public void should_detect_duplicate_serialization_ids()
 {
     MessageSerializationTester.DetectDuplicatedSerializationIds(typeof(IBus).Assembly);
 }