Пример #1
0
        public void Test_AlbumnsEmptyAtFirst()
        {
            //Arrange, Act
            int result = Albumn.GetAll().Count;

            //Assert
            Assert.Equal(0, result);
        }
Пример #2
0
        public void Test_Equal_ReturnsTrueForSameTitle()
        {
            //Arrange, Act
            Albumn firstAlbumn  = new Albumn("Pork Soda");
            Albumn secondAlbumn = new Albumn("Pork Soda");

            //Assert
            Assert.Equal(firstAlbumn, secondAlbumn);
        }
Пример #3
0
        public void Test_Save_SavesAlbumnToDatabase()
        {
            //Arrange
            Albumn testAlbumn = new Albumn("Pork Soda");

            testAlbumn.Save();

            //Act
            List <Albumn> result   = Albumn.GetAll();
            List <Albumn> testList = new List <Albumn> {
                testAlbumn
            };

            //Assert
            Assert.Equal(testList, result);
        }