Esempio n. 1
0
 private void UpdateParsedText()
 {
     parsedTextBox.Text =
         title
         + Environment.NewLine + Environment.NewLine
         + string.Join(Environment.NewLine, My_FieldsParserTask.ParseLine(textBox.Text));
 }
      public static void RunTests(string input, string[] expectedResult)
      {
          var actualResult = My_FieldsParserTask.ParseLine(input);

          Assert.AreEqual(expectedResult.Length, actualResult.Count);
          for (int i = 0; i < expectedResult.Length; ++i)
          {
              Assert.AreEqual(expectedResult[i], actualResult[i].Value);
          }
      }