コード例 #1
0
        public void ClrTypeMappingValueAnnotationDuplicatePropertyNameTests()
        {
            var edmModel = this.GetParserResult(ClrTypeMappingTestModelBuilder.ValueAnnotationDuplicatePropertyNameTest());

#if !SILVERLIGHT
            this.VerifyThrowsException(typeof(InvalidCastException),
                                       () => this.ValidateClrObjectConverter(this.GetValueAnnotations(edmModel, edmModel.FindType("NS1.Person"), "PersonValueAnnotation1").Single(), new ClassWithEnum())
                                       );
#endif
        }