public void FlipListTest() { AuditLog ad1 = new AuditLog(1, "", "", "", ""); AuditLog ad2 = new AuditLog(2, "", "", "", ""); Bug bug = new Bug("", "", "", "", "", "", "", "", ""); bug.AddAuditLog(ad1); bug.AddAuditLog(ad2); bug.FlipList(); Assert.IsTrue(bug.Logs.ElementAt(1).AuditLogId == 1); }
public void AddAuditLogTest() { AuditLog ad1 = new AuditLog(1, "", "", "", ""); Bug bug = new Bug("", "", "", "", "", "", "", "", ""); bug.AddAuditLog(ad1); Assert.IsTrue(bug.Logs.Count == 1); }