예제 #1
0
        public void WhenAnyTrackNumberIsZero_ReturnsTrackNameComparer()
        {
            // arrange
            var tracks = new List <IITTrack>
            {
                GetMockTrack(0).Object
            };

            // act
            var comparer = TrackComparerFactory.GetTrackComparer(tracks);

            // assert
            comparer.Should().BeOfType <TrackNameComparer>();
        }
예제 #2
0
        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>();
        }