public void WhenAnyTrackNumberIsZero_ReturnsTrackNameComparer() { // arrange var tracks = new List <IITTrack> { GetMockTrack(0).Object }; // act var comparer = TrackComparerFactory.GetTrackComparer(tracks); // assert comparer.Should().BeOfType <TrackNameComparer>(); }
public void WhenNoTrackNumberIsZero_AndNoTrackNumbersAreTheSame_ReturnsTrackDiscAndNumberComparer() { // arrange var tracks = new List <IITTrack> { GetMockTrack(9).Object, GetMockTrack(3).Object, GetMockTrack(7).Object, }; // act var comparer = TrackComparerFactory.GetTrackComparer(tracks); // assert comparer.Should().BeOfType <TrackDiscAndNumberComparer>(); }