ModelBuilder.UnitTests.CreationRuleTests.CreateReturnsValueFromConstructorExpressionTest C# (CSharp) Method

CreateReturnsValueFromConstructorExpressionTest() private method

private CreateReturnsValueFromConstructorExpressionTest ( ) : void
return void
        public void CreateReturnsValueFromConstructorExpressionTest()
        {
            var type = typeof(string);
            var name = Guid.NewGuid().ToString();
            var priority = Environment.TickCount;
            var expected = Guid.NewGuid().ToString();

            var target = new CreationRule((checkType, referenceName) => true, priority, (createType, referenceName, context) => expected);

            var actual = target.Create(type, name, null);

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