public void MatchesDescription_FieldNameAndDescriptDiffer_False()
        {
            var attribute = new EnumMemberAttribute {
                Value = "bad value"
            };

            Assert.False(attribute.MatchesDescription("won't match"));
        }
        public void MatchesDescription_EmptyFieldNameNonNullDescript_False()
        {
            var attribute = new EnumMemberAttribute {
                Value = string.Empty
            };

            Assert.False(attribute.MatchesDescription(MyEnumMemberValue));
        }
        public void MatchesDescription_WhiteSpacePaddedConstantNameUsed_True()
        {
            var attribute = new EnumMemberAttribute {
                Value = MyEnumMemberValue
            };

            Assert.True(attribute.MatchesDescription("  " + MyEnumMemberValue + "\t\r\t  "));
        }
        public void MatchesDescription_NameCaseDiffers_True()
        {
            var attribute = new EnumMemberAttribute {
                Value = MyEnumMemberValue
            };

            Assert.True(attribute.MatchesDescription(MyEnumMemberValue.ToUpper()));
        }
        public void MatchesDescription_ConstantNameUsed_True()
        {
            var attribute = new EnumMemberAttribute {
                Value = MyEnumMemberValue
            };

            Assert.True(attribute.MatchesDescription(MyEnumMemberValue));
        }
        public void MatchesDescription_NullAttribute_False()
        {
            EnumMemberAttribute attribute = null;

            Assert.False(attribute.MatchesDescription("won't match"));
        }