Пример #1
0
        public void group_name_should_return_original_name()
        {
            // arrange
            var convention = new DefaultControllerNameConvention();

            // act
            var name = convention.GroupName("Values");

            // assert
            name.Should().Be("Values");
        }
Пример #2
0
        public void normalize_name_should_trim_suffix(string controllerName)
        {
            // arrange
            var convention = new DefaultControllerNameConvention();

            // act
            var name = convention.NormalizeName(controllerName);

            // assert
            name.Should().Be("Values");
        }