コード例 #1
0
        public void Should_return_price_of_a_single_track_code(string trackCodes, int expectedPrice)
        {
            var trackPricer = new TrackPricer();
            var price = trackPricer.TotalPrice(trackCodes);

            Assert.That(price, Is.EqualTo(expectedPrice));
        }
コード例 #2
0
        public void Should_return_price_of_a_single_track_code(string trackCodes, int expectedPrice)
        {
            var trackPricer = new TrackPricer();
            var price       = trackPricer.TotalPrice(trackCodes);

            Assert.That(price, Is.EqualTo(expectedPrice));
        }
コード例 #3
0
        public void No_tracks_should_be_priced_as_zero()
        {
            const string noTrackCodes = "";

            var trackPricer = new TrackPricer();
            var price       = trackPricer.TotalPrice(noTrackCodes);

            Assert.That(price, Is.EqualTo(0));
        }
コード例 #4
0
        public void No_tracks_should_be_priced_as_zero()
        {
            const string noTrackCodes = "";

            var trackPricer = new TrackPricer();
            var price = trackPricer.TotalPrice(noTrackCodes);

            Assert.That(price, Is.EqualTo(0));
        }