public void ApplyModifierResultConcatPostfix()
 {
     StringMatch resultMatch = new StringMatch (" Gomez ", " German ");
     Hashtable parameters = new Hashtable ();
     parameters ["postfix"] = "Castañeda";
     Modifier concat = new Modifier ("Concat", parameters);
     Assert.AreEqual (" German Castañeda", resultMatch.ApplyModifier (resultMatch.ResultMatch, concat));
 }
 public void ApplyModifierFullConcatPostfix()
 {
     StringMatch fullMatch = new StringMatch (" Gomez ", "");
     Hashtable parameters = new Hashtable ();
     parameters ["postfix"] = "Morales";
     Modifier concat = new Modifier ("Concat", parameters);
     Assert.AreEqual (" Gomez Morales", fullMatch.ApplyModifier (fullMatch.FullMatch, concat));
 }
 public void ApplyModifierResultTrim()
 {
     StringMatch resultMatch = new StringMatch ("\nFoo    ", "\n\n    Bar    \n");
     Modifier trim = new Modifier ("Trim", null);
     Assert.AreEqual ("Bar", resultMatch.ApplyModifier (resultMatch.ResultMatch, trim));
 }
 public void ApplyModifierFullTrim()
 {
     StringMatch fullMatch = new StringMatch ("\nFoo    ", "");
     Modifier trim = new Modifier ("Trim", null);
     Assert.AreEqual ("Foo", fullMatch.ApplyModifier (fullMatch.FullMatch, trim));
 }
 public void ApplyModifiersFullConcatPrefix()
 {
     StringMatch fullMatch = new StringMatch (" Gomez ", "");
     Hashtable parameters = new Hashtable ();
     parameters ["prefix"] = "Hector";
     Modifier concat = new Modifier ("Concat", parameters);
     Assert.AreEqual ("Hector Gomez ", fullMatch.ApplyModifier (fullMatch.FullMatch, concat));
 }