示例#1
0
        // Test file where the first seconds digit is not 0
        public void Test_List_Column_Info_Duration2()
        {
            // Arrange
            var player = new BearPlayer.Bear_Player();

            TagLib.File file = TagLib.File.Create(file_path2);

            // Act
            ListViewItem item     = player.List_Column_Info(ref file);
            string       duration = item.SubItems[3].Text.ToString();

            // Assert
            Assert.AreEqual(duration, "3:25");   // Test file where the first seconds digit is not 0
        }
示例#2
0
        // Test file where the first seconds digit is 0
        public void Test_List_Column_Info_Duration()
        {
            // Arrange
            var player = new BearPlayer.Bear_Player();

            TagLib.File file = TagLib.File.Create(file_path1);

            // Act
            ListViewItem item     = player.List_Column_Info(ref file);
            string       duration = item.SubItems[3].Text.ToString();

            // Assert
            Assert.AreEqual(duration, "3:02");
        }
示例#3
0
        public void Test_List_Column_Info_Album()
        {
            // Arrange
            var player = new BearPlayer.Bear_Player();

            TagLib.File file = TagLib.File.Create(file_path1);

            // Act
            ListViewItem item  = player.List_Column_Info(ref file);
            string       album = item.SubItems[1].Text.ToString();

            // Assert
            Assert.AreEqual(album, "Cities");
        }
示例#4
0
        public void Test_List_Column_Info_Artist()
        {
            // Arrange
            var player = new BearPlayer.Bear_Player();

            TagLib.File file = TagLib.File.Create(file_path1);

            // Act
            ListViewItem item   = player.List_Column_Info(ref file);
            string       artist = item.SubItems[2].Text.ToString();

            // Assert
            Assert.AreEqual(artist, "Anberlin");
        }
示例#5
0
        public void Test_List_Column_Info_Title()
        {
            // Arrange
            var player = new BearPlayer.Bear_Player();

            TagLib.File file = TagLib.File.Create(file_path1);

            // Act
            ListViewItem item  = player.List_Column_Info(ref file);
            string       title = item.SubItems[0].Text.ToString();

            // Assert
            Assert.AreEqual(title, "Godspeed");
        }