Beispiel #1
0
 public void ShouldParseZeroAffectedFiles()
 {
     string[] output = new[]
                           {
                               "Change 1 by Administrator@P4CmdletsClient on 2010/05/14 17:00:44 *pending*\n\n\tDescription\n\n",
                               "Affected files ...\n\n",
                               "\n"
                           };
     var desc = new Description(output);
     Assert.AreEqual(0, desc.NumberOfFiles);
 }
Beispiel #2
0
 public void ShouldParseManyAffectedFiles()
 {
     string[] output = new[]
                           {
                               "Change 1 by Administrator@P4CmdletsClient on 2010/05/14 17:00:44 *pending*\n\n\tDescription\n\n",
                               "\tMessage\n\n",
                               "Affected files ...\n\n",
                               "... //depot/file1.txt#1 add\n",
                               "... //depot/file2.txt#1 add\n",
                               "\n"
                           };
     var desc = new Description(output);
     Assert.AreEqual(2, desc.NumberOfFiles);
 }