public void GetValidationResult_Should_ReturnValid()
        {
            var attribute = new RequiredEnumAttribute();

            var result = attribute.GetValidationResult(TestEnum.A, new ValidationContext(this));

            result.Should().BeNull();
        }
        public void GetValidationResult_Should_ReturnInvalid_ForNull()
        {
            var attribute = new RequiredEnumAttribute();

            var result = attribute.GetValidationResult(null, new ValidationContext(this));

            result.ErrorMessage.Should().NotBeNull();
        }