ModelBuilder.UnitTests.ArrayTypeCreatorTests.PopulateThrowsExceptionWithUnsupportedTypeTest C# (CSharp) Method

PopulateThrowsExceptionWithUnsupportedTypeTest() private method

private PopulateThrowsExceptionWithUnsupportedTypeTest ( ) : void
return void
        public void PopulateThrowsExceptionWithUnsupportedTypeTest()
        {
            var instance = new Lazy<bool>(() => true);

            var strategy = Substitute.For<IExecuteStrategy>();

            var target = new ArrayTypeCreator();

            Action action = () => target.Populate(instance, strategy);

            action.ShouldThrow<NotSupportedException>();
        }