ModelBuilder.UnitTests.DefaultTypeCreatorTests.CreateThrowsExceptionWhenNoAppropriateConstructorFoundTest C# (CSharp) Method

CreateThrowsExceptionWhenNoAppropriateConstructorFoundTest() private method

        public void CreateThrowsExceptionWhenNoAppropriateConstructorFoundTest()
        {
            var args = new object[]
            {
                Guid.NewGuid().ToString(),
                Guid.NewGuid().ToString(),
                Guid.NewGuid(),
                Environment.TickCount
            };

            var target = new DefaultTypeCreator();

            Action action = () => target.Create(typeof(Person), null, null, args);

            action.ShouldThrow<MissingMemberException>();
        }