本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}