
“998?” I inquired, “what can I do for you?”
September 18, 2007using System.IO;
using System.Text;
using NUnit.Framework;
namespace ParseText.Test
{
[TestFixture]
public class TextGenerator_Test : BaseTest
{
[Test]
public void TestGenerate()
{
ParseTrace.OutputLevel = ParseText.TraceLevel.Some;
TextGenerator generator = new TextGenerator(_root_context, MAX_ORDER);
StringBuilder generated = new StringBuilder();
StringWriter writer = new StringWriter(generated);
string seed = “You will never marry Constance now, and if you marry any one”;
generator.GenerateText(seed, LENGTH_TO_GENERATE, writer);
TestTrace.TraceIf(TraceLevel.Lots, “generated :” + generated.ToString());
Assert.That(generated.ToString().Length == LENGTH_TO_GENERATE + seed.Length, “generated text not the right length”);
}
}}
output:------ Test started: Assembly: ParseText.Test.dll ------Parsing file dataEgyptionBookOfTheDead.txt Done parsing file dataEgyptionBookOfTheDead.txt Parsing file dataTheKingInYellow_Chapter1.txt Done parsing file dataTheKingInYellow_Chapter1.txt generated :You will never marry Constance now, and if you marry any one else could know it. Nothing, however trivial, escapes his search"I want to ask of you," I said, in a soft voice."Yes," he continued, more quietly, "it will secure the happiest fellow that even if I d"I put on my . "Louis," I called him insane, but I kept my eye on Louis, I thought I had never interest in Hawberk's apartment house."Louis," I called him insane, "About armor also -- maybe -- but he is wrong in regard to the imperial family to Uoht and Thale, from Naotalba and Phantom of Truth to "The ambition is the first act only allowed the blow to fall afterwards with me. It was flat and pointed out to Vance what his share in "998?" I inquired, "what can I do for you? "In Mr. Wilde had climbed before me. Suddenly a man came running down from the manoeuvres in Westchester County to its new barracks the "Vance, come in!" cried Mr. Wilde, who had died in Paris on the armor, but I did not seem to notice the sudden ceasing his ears with hi Mr. Wilde, who had died in Paris on the armor, but I did not seem to notice the sudden ceasing his ears with his squadron. He was eccen Mr. Wilde, who had died in Paris on the armor, but I did not seem to notice the sudden ceasing his ears with his crippled hand. "Perhaps Constance --" I did not answer, but took the circlet from his hand tremble before that which churned the conversation back to Mr. Wilde and myself.--1 passed, 0 failed, 0 skipped, took 11.41 seconds.