Example #1
0
        public void GetRecentAlbumsWithPictures_ReturnsTwoAlbumsAndTwoPictures()
        {
            var context = new DataContext();

            var albums = context.GetRecentAlbumsWithPictures(2, 2) as List<Album>;

            Assert.IsNotNull(albums);
            Assert.IsTrue(albums.Count == 2);
            Assert.IsTrue(albums[0].Pictures.Count == 2, "Count should be 2, but it's " + albums[0].Pictures.Count);
            Assert.IsTrue(albums[1].Pictures.Count == 2, "Count should be 2, but it's " + albums[1].Pictures.Count);
        }
Example #2
0
 public void GetRecentAlbumsWithPictures_NumberOfPicturesShouldBeGreaterThanZero()
 {
     DataContext context = new DataContext();
     context.GetRecentAlbumsWithPictures(2, 0);
 }