Beispiel #1
0
        public void GetAlbums_ResultIsNotNull()
        {
            var context = new DataContext();

            var albums = context.GetAlbums();

            Assert.IsNotNull(albums);
        }
Beispiel #2
0
        public void GetAlbums_PassingParameter()
        {
            var context = new DataContext();

            var albums = context.GetAlbums(2);

            Assert.IsNotNull(albums);
            Assert.IsTrue(albums.Count == 2);
        }
Beispiel #3
0
 public void GetAlbums_NumberOfAlbumsShouldBeGreaterThanZero()
 {
     DataContext context = new DataContext();
     context.GetAlbums(-1);
 }