示例#1
0
        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);
        }
示例#2
0
        public void AddAuditLogTest()
        {
            AuditLog ad1 = new AuditLog(1, "", "", "", "");
            Bug      bug = new Bug("", "", "", "", "", "", "", "", "");

            bug.AddAuditLog(ad1);
            Assert.IsTrue(bug.Logs.Count == 1);
        }