IsTrackUniquelyIdentifiable() public method

public IsTrackUniquelyIdentifiable ( ) : bool
return bool
Ejemplo n.º 1
0
        public void ShouldIdentify()
        {
            var tagInfoWithTitleAndArtist = new TagInfo { Artist = "artist", Title = "title" };
            var tagInfoWithISRC = new TagInfo { ISRC = "ISRC" };

            Assert.IsTrue(tagInfoWithISRC.IsTrackUniquelyIdentifiable());
            Assert.IsTrue(tagInfoWithTitleAndArtist.IsTrackUniquelyIdentifiable());
        }
Ejemplo n.º 2
0
        public void ShouldNotIdentify()
        {
            var tagInfoWithoutTitle = new TagInfo { Artist = "artist" };
            var tagInfoWithoutArtist = new TagInfo { Title = "title" };
            var tagInfoWithoutISRC = new TagInfo();

            Assert.IsFalse(tagInfoWithoutArtist.IsTrackUniquelyIdentifiable());
            Assert.IsFalse(tagInfoWithoutTitle.IsTrackUniquelyIdentifiable());
            Assert.IsFalse(tagInfoWithoutISRC.IsTrackUniquelyIdentifiable());
        }