コード例 #1
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);
        }