Ejemplo n.º 1
0
        public void ServiceMessageNoPayloadSerializationTest()
        {
            var sm = new ServiceMessage(_testHeader);

            ServiceMessageTestHelper.SerializeDeserializeTest(sm);
        }
Ejemplo n.º 2
0
        public void ServiceMessageWithPayloadSerializationTest()
        {
            var sm = new ServiceMessage(_testHeader, new ServiceMessagePayload(Encoding.ASCII.GetBytes(RandomString)));

            ServiceMessageTestHelper.SerializeDeserializeTest(sm);
        }
Ejemplo n.º 3
0
 public void ServiceMessageHeaderConstructionTest()
 {
     ServiceMessageTestHelper.ActionShouldThrow <ArgumentException>(() => new ServiceMessageHeader(OperationCode.None));
 }