packages/netfx-IpsumGenerator.1.0.0.7/content/netfx/Testing/Ipsum.cs
/// <summary>
/// Gets a random Lorem Ipsum phrase with the given word count, starting with "Lorem ipsum dolor sit amet" 
/// and ending with a dot.
/// </summary>
Gets a random Lorem Ipsum phrase with the given word count, starting with "Lorem ipsum dolor sit amet"
and ending with a dot.
Gets a random Lorem Ipsum phrase with the given word count starting with " Lorem ipsum dolor sit amet " and ending with a dot .
public static string GetPhrase(int wordCount)
	{
		var result = new List<string>();
		result.Add("Lorem");
		result.Add("ipsum");
		result.Add("dolor");
		result.Add("sit");
		result.Add("amet");
		for (int i = 5; i <= wordCount; i++)
		{
			result.Add(words[random.Next(words.Length - 1)]);
		}
		return string.Join(" ", result.Take(wordCount)) + ".";
	}
public static string GetPhrase ( int wordCount ) { var result = new List < string > ( ) ; result . Add ( " " ) ; result . Add ( " " ) ; result . Add ( " " ) ; result . Add ( " " ) ; result . Add ( " " ) ; for ( int i = 5 ; i <= wordCount ; i ++ ) { result . Add ( words [ random . Next ( words . Length - 1 ) ] ) ; } return string . Join ( " " , result . Take ( wordCount ) ) + " " ; }
Gets a random Lorem Ipsum phrase with the given word count, starting with "Lorem ipsum dolor sit amet"
and ending with a dot.
Gets a random Lorem Ipsum phrase with the given word count starting with " Lorem ipsum dolor sit amet " and ending with a dot .
wordCount
int