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

            // Act
            player.Change_ArtistView();

            // Assert
            Assert.AreEqual(player.curr_view.ToString(), "Artists");
        }
Esempio n. 2
0
        public void Test_ChangeArtist_Label()
        {
            // Arrange
            var player = new BearPlayer.Bear_Player();

            // Act
            player.Change_ArtistView();

            // Assert
            Assert.AreEqual(player.View_Label.Text, "Artists");
        }
Esempio n. 3
0
        public void Test_Resize_Song_List()
        {
            var player = new BearPlayer.Bear_Player();

            //1064, 656 min size of player

            player.Height = 1065;
            player.Width  = 657;
            ListView songs = player.curr_list_box;

            player.Change_ArtistView();
            MessageBox.Show(songs.Height.ToString());
            Assert.IsTrue(songs.Width == 1458);
            Assert.IsTrue(songs.Height == 1201);
        }