ModelBuilder.UnitTests.RelativeValueGeneratorTests.IsSupportedReturnsFalseForUnsupportedScenariosTest C# (CSharp) Method

IsSupportedReturnsFalseForUnsupportedScenariosTest() private method

private IsSupportedReturnsFalseForUnsupportedScenariosTest ( Type type, string referenceName, Type contextType, bool expected ) : void
type System.Type
referenceName string
contextType System.Type
expected bool
return void
        public void IsSupportedReturnsFalseForUnsupportedScenariosTest(
            Type type,
            string referenceName,
            Type contextType,
            bool expected)
        {
            var buildChain = new LinkedList<object>();

            if (contextType != null)
            {
                var context = Activator.CreateInstance(contextType);

                buildChain.AddFirst(context);
            }

            var target = new GeneratorWrapper(PropertyExpression.FirstName, PropertyExpression.Gender);

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

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