예제 #1
0
 public void Folder_update()
 {
     var f = new Folder("/parent/child", new DateTime(1), new DateTime(2), 1);
     f.Update(new MessageEventArgs_410420(1, "", "/parent/child", FileType.FOLDER, 2, new DateTime(3), new DateTime(4)));
     Assert.That(f.Created,  Is.EqualTo(new DateTime(3)), "Created time has not updated.");
     Assert.That(f.Modified, Is.EqualTo(new DateTime(4)), "Modified time has not updated.");
     Assert.That(f.Count,    Is.EqualTo(2), "Folder count has not updated.");
 }