Files
Readarr/src/NzbDrone.Core.Test/ParserTests/MusicParserFixture.cs
T
Joseph Milazzo ef4da4ac9f Track Parsing Code (#10)
* We now have the ability to import local tracks into Lidarr. Switching to IDv3 tag reading over custom parsing for local tracks.

* Stable code for track refresh.

* RefreshArtist and RescanArtist events are working correctly. Need to add potential rejection decisions in future.

* Implemented code comments

* PR comments and fixing some odd db bugs.

* Fix some conflicts after Unit Test PR Merge

Fix some conflicts after Unit Test PR Merge

* Track/Album Add and Update Fixes

Track/Album Add and Update Fixes

* Fixed an issue with trackimport looking up trackId instead of artistId

* Add Handle to TrackService for TrackAddedEvent

Add Handle to TrackService for TrackAddedEvent

* Update Quality Regex, Store BitRateMode in TrackFile

Update Quality Regex, Store BitRateMode in TrackFile
2017-07-03 13:39:06 -05:00

40 lines
1.2 KiB
C#

using FluentAssertions;
using NUnit.Framework;
using NzbDrone.Core.Test.Framework;
using NzbDrone.Test.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NzbDrone.Core.Test.ParserTests
{
[TestFixture]
public class MusicParserFixture : CoreTest
{
[TestCase("___▲▲▲___")]
[TestCase("Add N to (X)")]
[TestCase("Animal Collective")]
[TestCase("D12")]
[TestCase("David Sylvian[Discography]")]
[TestCase("Eagle-Eye Cherry")]
[TestCase("Erlend Øye")]
[TestCase("Adult.")] // Not sure if valid, not openable in Windows OS
[TestCase("Maroon 5")]
[TestCase("Moimir Papalescu & The Nihilists")]
[TestCase("N.W.A")]
[TestCase("oOoOO")]
[TestCase("Panic! at the Disco")]
[TestCase("The 5 6 7 8's")]
[TestCase("tUnE-yArDs")]
[TestCase("U2")]
[TestCase("Белые Братья")]
[TestCase("Zog Bogbean - From The Marcy Playground")]
public void should_parse_artist_names(string title)
{
Parser.Parser.ParseMusicTitle(title).ArtistTitle.Should().Be(title);
ExceptionVerification.IgnoreWarns();
}
}
}