Exemplo n.º 1
0
        public void BusRoutes_FindWhenAllBusesMatchTheory(string buses, long expected)
        {
            var sut    = new BusRoutes(0, buses);
            var result = sut.FindWhenAllBusesMatch();

            Assert.Equal(expected, result);
        }
Exemplo n.º 2
0
        public void BusRoutes_FindWhenAllBusesMatch()
        {
            string buses = "7,13,x,x,59,x,31,19";

            var sut    = new BusRoutes(0, buses);
            var result = sut.FindWhenAllBusesMatch();

            Assert.Equal(1068781, result);
        }