public void ConstructorSetsInstanceeAndOptionType()
        {
            // Arrange
            var instance = new TestExcludeFilter();

            // Act
            var descriptor = new ExcludeValidationDescriptor(instance);

            // Assert
            Assert.Same(instance, descriptor.Instance);
            Assert.Equal(instance.GetType(), descriptor.OptionType);
        }
        public void ConstructorSetsOptionType()
        {
            // Arrange
            var type = typeof(TestExcludeFilter);

            // Act
            var descriptor = new ExcludeValidationDescriptor(type);

            // Assert
            Assert.Equal(type, descriptor.OptionType);
            Assert.Null(descriptor.Instance);
        }