GetResourceName() public method

Gets the name of the resource corresponding to the given entity by pluralizing it if necessary.
public GetResourceName ( Type entityType ) : string
entityType System.Type
return string
コード例 #1
0
ファイル: PluralizerSpec.cs プロジェクト: netfx/extensions
		public void WhenFormatLowerCase_ThenTurnsFirstLetterLowerCase()
		{
			var pluralizer = new PluralizerResourceConvention(
				PluralizationService.CreateService(new System.Globalization.CultureInfo("en-US")), PluralizerResourceFormat.CamelCase);

			Assert.Equal("helloWorlds", pluralizer.GetResourceName(typeof(HelloWorld)));
		}