public void GetEnumValueDescription_AttributeDescription()
        {
            // arrange
            var namingConventions = new DefaultNamingConventions();

            // act
            string result = namingConventions.GetEnumValueDescription(Foo.Baz);

            // assert
            Assert.Equal("Baz Desc", result);
        }
        public void GetEnumValueDescription_XmlDescription()
        {
            // arrange
            var namingConventions = new DefaultNamingConventions();

            // act
            var result = namingConventions.GetEnumValueDescription(EnumWithDocEnum.Value1);

            // assert
            Assert.Equal("Value1 Documentation", result);
        }
        public void GetEnumValueDescription_NoDescription(object value)
        {
            // arrange
            var namingConventions = new DefaultNamingConventions();

            // act
            var result = namingConventions.GetEnumValueDescription(value);

            // assert
            Assert.Null(result);
        }
        public void GetEnumValueDescription_AttributeDescription()
        {
            // arrange
            var namingConventions = new DefaultNamingConventions(
                new XmlDocumentationProvider(
                    new XmlDocumentationFileResolver(),
                    new NoOpStringBuilderPool()));
            // act
            var result = namingConventions.GetEnumValueDescription(Foo.Baz);

            // assert
            Assert.Equal("Baz Desc", result);
        }
        public void GetEnumValueDescription_XmlDescription()
        {
            // arrange
            var namingConventions = new DefaultNamingConventions(
                new XmlDocumentationProvider(
                    new XmlDocumentationFileResolver(),
                    new NoOpStringBuilderPool()));

            // act
            var result = namingConventions.GetEnumValueDescription(EnumWithDocEnum.Value1);

            // assert
            Assert.Equal("Value1 Documentation", result);
        }
        public void GetEnumValueDescription_NoDescription(object value)
        {
            // arrange
            var namingConventions = new DefaultNamingConventions(
                new XmlDocumentationProvider(
                    new XmlDocumentationFileResolver(),
                    new NoOpStringBuilderPool()));

            // act
            var result = namingConventions.GetEnumValueDescription(value);

            // assert
            Assert.Null(result);
        }