Ejemplo n.º 1
0
        public void Increment_adds_1_to_existing_counter_greater_than_9()
        {
            var original  = "example-10";
            var generator = new RouteGenerator();

            var result = generator.IncrementRoute(original);

            Assert.Equal("example-11", result);
        }
Ejemplo n.º 2
0
        public void Increment_adds_1_where_no_counter()
        {
            var original  = "example";
            var generator = new RouteGenerator();

            var result = generator.IncrementRoute(original);

            Assert.Equal("example-1", result);
        }