public void WriteComplexParameterWithoutTypeInformationErrorTest()
        {
            EdmModel edmModel  = new EdmModel();
            var      container = new EdmEntityContainer("DefaultNamespace", "DefaultContainer");

            edmModel.AddElement(container);

            var testDescriptors = new PayloadWriterTestDescriptor <ODataParameters>[]
            {
                new PayloadWriterTestDescriptor <ODataParameters>(
                    this.Settings,
                    new ODataParameters()
                {
                    new KeyValuePair <string, object>("p1", new ODataResource())
                },
                    tc => new WriterTestExpectedResults(this.ExpectedResultSettings)
                {
                    ExpectedException2 = ODataExpectedExceptions.ODataException("WriterValidationUtils_MissingTypeNameWithMetadata")
                })
                {
                    DebugDescription = "Complex value without expected type or type name.",
                    Model            = edmModel
                },
            };

            this.CombinatorialEngineProvider.RunCombinations(
                testDescriptors,
                this.WriterTestConfigurationProvider.JsonLightFormatConfigurations.Where(tc => tc.IsRequest),
                (testDescriptor, testConfiguration) =>
            {
                TestWriterUtils.WriteAndVerifyODataParameterPayload(testDescriptor, testConfiguration, this.Assert, this.Logger);
            });
        }