ModelBuilder.UnitTests.CreationRuleTests.CreateReturnsValueFromConstructorExpressionTest C# (CSharp) 메소드

CreateReturnsValueFromConstructorExpressionTest() 개인적인 메소드

private CreateReturnsValueFromConstructorExpressionTest ( ) : void
리턴 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);
        }