当前位置: 首页>>代码示例>>C#>>正文


C# Dictionary.ShouldHaveDataMemberAttributes方法代码示例

本文整理汇总了C#中Dictionary.ShouldHaveDataMemberAttributes方法的典型用法代码示例。如果您正苦于以下问题:C# Dictionary.ShouldHaveDataMemberAttributes方法的具体用法?C# Dictionary.ShouldHaveDataMemberAttributes怎么用?C# Dictionary.ShouldHaveDataMemberAttributes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Dictionary的用法示例。


在下文中一共展示了Dictionary.ShouldHaveDataMemberAttributes方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Yahoo_GeoPlanet_JsonPlace_Center_ShouldHaveDataMemberAttribute

 public void Yahoo_GeoPlanet_JsonPlace_Center_ShouldHaveDataMemberAttribute()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlace, Point>>>
     {
         { "centroid", p => p.Center },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
开发者ID:lfreidin,项目名称:TravelPhotoTool,代码行数:8,代码来源:JsonPlaceTests.cs

示例2: Yahoo_GeoPlanet_JsonPlaceType_JsonAttributes_ShouldHaveDataMemberAttribute

 public void Yahoo_GeoPlanet_JsonPlaceType_JsonAttributes_ShouldHaveDataMemberAttribute()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlaceType, JsonPlaceTypeAttributes>>>
     {
         { "placeTypeName attrs", p => p.JsonAttributes },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
开发者ID:Gaploid,项目名称:NGeo,代码行数:8,代码来源:JsonPlaceTypeTests.cs

示例3: Yahoo_GeoPlanet_JsonPlace_BoundingBox_ShouldHaveDataMemberAttribute

 public void Yahoo_GeoPlanet_JsonPlace_BoundingBox_ShouldHaveDataMemberAttribute()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlace, BoundingBox>>>
     {
         { "boundingBox", p => p.BoundingBox },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
开发者ID:lfreidin,项目名称:TravelPhotoTool,代码行数:8,代码来源:JsonPlaceTests.cs

示例4: Yahoo_GeoPlanet_JsonPlaceTypeAttributes_Code_ShouldHaveDataMemberAttribute

 public void Yahoo_GeoPlanet_JsonPlaceTypeAttributes_Code_ShouldHaveDataMemberAttribute()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlaceTypeAttributes, int>>>
     {
         { "code", p => p.Code },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
开发者ID:lfreidin,项目名称:TravelPhotoTool,代码行数:8,代码来源:JsonPlaceTypeAttributesTests.cs

示例5: Yahoo_GeoPlanet_JsonPlaceType_Uri_ShouldHaveDataMemberAttributes

 public void Yahoo_GeoPlanet_JsonPlaceType_Uri_ShouldHaveDataMemberAttributes()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlaceType, Uri>>>
     {
         { "uri", p => p.Uri },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
开发者ID:Gaploid,项目名称:NGeo,代码行数:8,代码来源:JsonPlaceTypeTests.cs

示例6: Yahoo_GeoPlanet_JsonLocalityAttributes_Type_ShouldHaveDataMemberAttribute

 public void Yahoo_GeoPlanet_JsonLocalityAttributes_Type_ShouldHaveDataMemberAttribute()
 {
     var properties = new Dictionary<string, Expression<Func<JsonLocalityAttributes, string>>>
     {
         { "type", p => p.Type },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
开发者ID:WenhuaHu1224,项目名称:NGeo,代码行数:8,代码来源:JsonLocalityAttributes.cs

示例7: GeoNames_Country_Population_ShouldHaveDataMemberAttribute

        public void GeoNames_Country_Population_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<Country, long>>>
            {
                { "population", p => p.Population },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
开发者ID:Gaploid,项目名称:NGeo,代码行数:9,代码来源:CountryTests.cs

示例8: GeoNames_Country_NullableIntProperties_ShouldHaveDataMemberAttribute

        public void GeoNames_Country_NullableIntProperties_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<Country, int?>>>
            {
                { "isoNumeric", p => p.IsoNumericCode },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
开发者ID:Gaploid,项目名称:NGeo,代码行数:9,代码来源:CountryTests.cs

示例9: Yahoo_GeoPlanet_BoundingBox_PointProperties_ShouldHaveDataMemberAttributes

 public void Yahoo_GeoPlanet_BoundingBox_PointProperties_ShouldHaveDataMemberAttributes()
 {
     var properties = new Dictionary<string, Expression<Func<BoundingBox, Point>>>
     {
         { "southWest", p => p.Southwest },
         { "northEast", p => p.Northeast },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
开发者ID:WenhuaHu1224,项目名称:NGeo,代码行数:9,代码来源:BoundingBoxTests.cs

示例10: Yahoo_GeoPlanet_JsonAdminAttributes_StringProperties_ShouldHaveDataMemberAttribute

 public void Yahoo_GeoPlanet_JsonAdminAttributes_StringProperties_ShouldHaveDataMemberAttribute()
 {
     var properties = new Dictionary<string, Expression<Func<JsonAdminAttributes, string>>>
     {
         { "code", p => p.Code },
         { "type", p => p.Type },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
开发者ID:WenhuaHu1224,项目名称:NGeo,代码行数:9,代码来源:JsonAdminAttributesTests.cs

示例11: Yahoo_PlaceFinder_Response_Results_ShouldHaveDataMemberAttribute

        public void Yahoo_PlaceFinder_Response_Results_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<Response, ResultSet>>>
            {
                { "ResultSet", p => p.ResultSet },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
开发者ID:WenhuaHu1224,项目名称:NGeo,代码行数:9,代码来源:ResponseTests.cs

示例12: Yahoo_PlaceFinder_Result_BoundingBox_ShouldHaveDataMemberAttribute

        public void Yahoo_PlaceFinder_Result_BoundingBox_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<Result, BoundingBox>>>
            {
                { "boundingbox", p => p.BoundingBox },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
开发者ID:Gaploid,项目名称:NGeo,代码行数:9,代码来源:ResultTests.cs

示例13: Yahoo_GeoPlanet_JsonPlace_JsonLocalityAttributes_ShouldHaveDataMemberAttributes

 public void Yahoo_GeoPlanet_JsonPlace_JsonLocalityAttributes_ShouldHaveDataMemberAttributes()
 {
     var properties = new Dictionary<string, Expression<Func<JsonPlace, JsonLocalityAttributes>>>
     {
         { "locality1 attrs", p => p.Locality1 },
         { "locality2 attrs", p => p.Locality2 },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
开发者ID:lfreidin,项目名称:TravelPhotoTool,代码行数:9,代码来源:JsonPlaceTests.cs

示例14: Yahoo_GeoPlanet_Point_StringProperties_ShouldHaveDataMemberAttributes

 public void Yahoo_GeoPlanet_Point_StringProperties_ShouldHaveDataMemberAttributes()
 {
     var properties = new Dictionary<string, Expression<Func<Point, double>>>
     {
         { "latitude", p => p.Latitude },
         { "longitude", p => p.Longitude },
     };
     properties.ShouldHaveDataMemberAttributes();
 }
开发者ID:lfreidin,项目名称:TravelPhotoTool,代码行数:9,代码来源:PointTests.cs

示例15: GeoNames_Toponym_GeoNameId_ShouldHaveDataMemberAttribute

        public void GeoNames_Toponym_GeoNameId_ShouldHaveDataMemberAttribute()
        {
            var properties = new Dictionary<string, Expression<Func<Toponym, int>>>
            {
                { "geonameId", p => p.GeoNameId },
            };

            properties.ShouldHaveDataMemberAttributes();
        }
开发者ID:lfreidin,项目名称:TravelPhotoTool,代码行数:9,代码来源:ToponymTests.cs


注:本文中的Dictionary.ShouldHaveDataMemberAttributes方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。