Esempio n. 1
0
        public void Test_Play_Song_Another_New_Songs()
        {
            // Arrange
            var player = new BearPlayer.Bear_Player();

            // Act
            bool result = player.play_song(file_path1);

            result = player.play_song(file_path2);

            // Assert
            Assert.IsTrue(result);
        }
Esempio n. 2
0
        public void Test_Play_Song_Same_Songs()
        {
            // Arrange
            var player = new BearPlayer.Bear_Player();

            // Act
            bool result = player.play_song(file_path1);

            result = player.play_song(file_path1);

            // Assert
            Assert.IsFalse(result);
        }
Esempio n. 3
0
        public void Test_Song_Selected()
        {
            // Arrange
            var player = new BearPlayer.Bear_Player();

            // Act
            player.play_song(file_path1);

            // Assert
            Assert.IsTrue(player.song_selected);
        }