public void parametrized_constructor_with_details_should_assign_all_parameters()
        {
            var message = new CallErrorMessage(callId, errorUri, errorDescription, errorDetails);

            message.ErrorUri.Should().Be(errorUri);
            message.CallId.Should().Be(callId);
            message.ErrorDescription.Should().Be(errorDescription);
            message.ErrorDetails.Should().Be(errorDetails);
        }
        public void array_serialization_without_details_serializes_all_properties_in_correct_order()
        {
            var message = new CallErrorMessage(callId, errorUri, errorDescription);
            var array = message.ToArray();

            array.Length.Should().Be(4);
            array[0].Should().Be(MessageTypes.CallError);
            array[1].Should().Be(callId);
            array[2].Should().Be(errorUri);
            array[3].Should().Be(errorDescription);
        }
 public void message_type_implements_IMessage_interface()
 {
     var message = new CallErrorMessage();
     (message is IMessage).Should().BeTrue();
 }