public void ServiceMessageNoPayloadSerializationTest() { var sm = new ServiceMessage(_testHeader); ServiceMessageTestHelper.SerializeDeserializeTest(sm); }
public void ServiceMessageWithPayloadSerializationTest() { var sm = new ServiceMessage(_testHeader, new ServiceMessagePayload(Encoding.ASCII.GetBytes(RandomString))); ServiceMessageTestHelper.SerializeDeserializeTest(sm); }
public void ServiceMessageHeaderConstructionTest() { ServiceMessageTestHelper.ActionShouldThrow <ArgumentException>(() => new ServiceMessageHeader(OperationCode.None)); }