Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
 public void message_type_implements_IMessage_interface()
 {
     var message = new CallErrorMessage();
     (message is IMessage).Should().BeTrue();
 }