示例#1
0
        public void AnalyzeModifications()
        {
            Modification[] expected = new Modification[1];
            expected[0]              = new Modification();
            expected[0].Comment      = @"Added new labels.";
            expected[0].EmailAddress = null;
            expected[0].Version      = "1.4";
            expected[0].FileName     = @"ChessViewer.java-arc";
            expected[0].FolderName   = @"D:\root\PVCS\vm\common\SampleDB\archives\chess\client";
            expected[0].ModifiedTime = DateTime.Parse("2/1/00 4:52:46 PM", dfi);
            expected[0].Type         = "Checked in";
            expected[0].UserName     = "******";

            Modification[] actual = PvcsHistoryParser.AnalyzeModifications(GetExpectedModificationsForAnalyze());

            CustomAssertion.AssertEqualArrays(actual, expected);
        }
示例#2
0
 public void ParseModifications()
 {
     Modification[] actual   = parser.Parse(ContentReader, OLDEST_ENTRY, NEWEST_ENTRY);
     Modification[] expected = GetExpectedModifications();
     CustomAssertion.AssertEqualArrays(expected, actual);
 }