コード例 #1
0
        public void WhatAreTheNumberOfTrips_StartingAtAAndEndingAtC_WithExactlyFourStops(string graphInput, int expectation)
        {
            //arrange
            var graph = new Graph(graphInput);

            //act
            var tripResponse = new ExactStopTripFinder(graph).FindTrip('A', 'C');

            //assert
            Assert.That(tripResponse.GetResponse(), Is.EqualTo(expectation.ToString()));
        }
コード例 #2
0
        private static void DoExactTripFinder(Graph graph, List<IResponse> responses)
        {
            var exactTripFinder = new ExactStopTripFinder(graph);

            responses.Add(exactTripFinder.FindTrip('A', 'C'));
        }