ModelBuilder.UnitTests.ValueGeneratorMatcherTests.IsSupportedEvaluatesSpecifiedExpressionAndTypesTest C# (CSharp) 메소드

IsSupportedEvaluatesSpecifiedExpressionAndTypesTest() 개인적인 메소드

private IsSupportedEvaluatesSpecifiedExpressionAndTypesTest ( Type type, string expression, string referenceName, bool expected ) : void
type System.Type
expression string
referenceName string
expected bool
리턴 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);
        }