public void CanCreateNewModification() { const string userName = "******"; const string timeStamp = "Wednesday, March 10, 2004 08:52:05 AM"; DateTime expectedTime = new DateTime(2004, 03, 10, 08, 52, 05); const string path = @"D:\CCase\ppunjani_view\RefArch\tutorial\wwhdata\common"; const string file = "context.js"; const string elementName = path + "\\" + file; const string modificationType = "checkin"; const string comment = "implemented dwim"; const string change = @"\main\17"; Modification modification = parser.CreateNewModification(userName, timeStamp, elementName, modificationType, comment, change); Assert.AreEqual(comment, modification.Comment); Assert.IsNull(modification.EmailAddress); Assert.AreEqual(file, modification.FileName); Assert.AreEqual(path, modification.FolderName); Assert.AreEqual(expectedTime, modification.ModifiedTime); Assert.AreEqual(modificationType, modification.Type); Assert.IsNull(modification.Url); Assert.AreEqual("\\main\\17", modification.ChangeNumber); Assert.AreEqual(userName, modification.UserName); }
public void CanCreateNewModification() { const string userName = "******"; const string timeStamp = "Wednesday, March 10, 2004 08:52:05 AM"; DateTime expectedTime = new DateTime(2004, 03, 10, 08, 52, 05); const string file = "context.js"; string elementName = System.IO.Path.Combine(path, file); const string modificationType = "checkin"; const string comment = "implemented dwim"; const string change = @"\main\17"; Modification modification = parser.CreateNewModification(userName, timeStamp, elementName, modificationType, comment, change); Assert.AreEqual(comment, modification.Comment); Assert.IsNull(modification.EmailAddress); Assert.AreEqual(file, modification.FileName); Assert.AreEqual(path, modification.FolderName); Assert.AreEqual(expectedTime, modification.ModifiedTime); Assert.AreEqual(modificationType, modification.Type); Assert.IsNull(modification.Url); Assert.AreEqual("\\main\\17", modification.ChangeNumber); Assert.AreEqual(userName, modification.UserName); }