Пример #1
0
        public void DAO_FindCommentsOrderByDateTest()
        {
            try
            {
                ICollection <Comment> comments = new List <Comment>();
                comments.Add(comment);
                comments.Add(comment2);
                ICollection <Comment> commentsActual = commentDao.FindCommentsOrderByDate(myEvent.eventId, 0, 2);

                Assert.AreEqual(2, commentsActual.Count, "Event found does not correspond with the original one.");
            }
            catch (Exception e)
            {
                Assert.Fail(e.Message);
            }
        }