ModelBuilder.UnitTests.ValueGeneratorMatcherTests.IsSupportedEvaluatesSpecifiedExpressionAndTypesTest C# (CSharp) Method

IsSupportedEvaluatesSpecifiedExpressionAndTypesTest() private method

private IsSupportedEvaluatesSpecifiedExpressionAndTypesTest ( Type type, string expression, string referenceName, bool expected ) : void
type System.Type
expression string
referenceName string
expected bool
return void
        public void IsSupportedEvaluatesSpecifiedExpressionAndTypesTest(
            Type type,
            string expression,
            string referenceName,
            bool expected)
        {
            var regex = new Regex(expression);

            var target = new WrapperGenerator(regex, typeof(bool), typeof(bool?));

            var actual = target.IsSupported(type, referenceName, null);

            actual.Should().Be(expected);
        }