Ejemplo n.º 1
0
        public void Should_Find_Track()
        {
            TrackExtractor extractor = new TrackExtractor(c =>
            {
                return c.Value.LevelValue;
            });

            int count = 7;

            var data = GetTracksWithoutCD(count);
            extractor.CurrentData(data);

            extractor.Execute();

            for (int i = 0; i < count; i++)
            {
                Assert.AreEqual(i+1, data[i].Value.TrackNr);
            }
        }
Ejemplo n.º 2
0
        public void Should_Extract_CD()
        {
            TrackExtractor extractor = new TrackExtractor(c =>
            {
                return c.Value.LevelValue;
            });

            int count = 3;

            var data = GetMultiCDTracks(2, count);
            extractor.CurrentData(data);

            extractor.Execute();

            for (int i = 0; i < count; i++)
            {
                Assert.AreEqual(i + 1, data[i].Value.TrackNr);
            }
        }