public void ClrTypeMappingVocabularyAnnotationCollectionPropertyToNullListTest()
        {
            var edmModel        = this.GetParserResult(ClrTypeMappingTestModelBuilder.VocabularyAnnotationCollectionPropertyTest());
            var valueAnnotation = this.GetVocabularyAnnotations(edmModel, edmModel.FindType("NS1.Person"), "PersonValueAnnotation").Single();

            this.VerifyThrowsException(typeof(System.ArgumentException), () => this.ConvertToClrObject <ClassWithNullCollectionProperty>(valueAnnotation));
        }
        public void ClrTypeMappingVocabularyAnnotationCollectionPropertyTest()
        {
            var edmModel = this.GetParserResult(ClrTypeMappingTestModelBuilder.VocabularyAnnotationCollectionPropertyTest());

            var valueAnnotation = this.GetVocabularyAnnotations(edmModel, edmModel.FindType("NS1.Person"), "PersonValueAnnotation").Single();

            this.ValidateClrObjectConverter(valueAnnotation,
                                            new ClassWithCollectionProperty()
            {
                X = new int[] { 4, 5 },
                Y = new int[] { 6, 7 },
                Z = new int[] { 8, 9 },
                C = new Display1[] {
                    new Display1()
                    {
                        X = 10, Y = 11
                    },
                    new Display1()
                    {
                        X = 12, Y = 13
                    }
                },
            });
        }