ModelBuilder.UnitTests.DefaultExecuteStrategyTests.CreateWithThrowsExceptionWithNullTypeTest C# (CSharp) Method

CreateWithThrowsExceptionWithNullTypeTest() private method

private CreateWithThrowsExceptionWithNullTypeTest ( ) : void
return void
        public void CreateWithThrowsExceptionWithNullTypeTest()
        {
            var buildStrategy = Substitute.For<IBuildStrategy>();

            var target = new DefaultExecuteStrategy();

            target.Initialize(buildStrategy, buildStrategy.GetBuildLog());

            Action action = () => target.CreateWith(null);

            action.ShouldThrow<ArgumentNullException>();
        }
DefaultExecuteStrategyTests