Esempio n. 1
0
 public TemplateToken ExpectValue(params String[] ExpectedValue)
 {
     if (!ExpectedValue.Contains(Current.Text))
     {
         throw (new Exception(String.Format("Expected tokens [{0}] but obtained '{1}'", ExpectedValue.Select(Item => "'" + Item + "'").Implode(","), Current.Text)));
     }
     return(Current);
 }