// 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 }
// 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"); }
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"); }
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"); }
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"); }