ModelBuilder.UnitTests.DefaultExecuteStrategyTests.CreateWithThrowsExceptionWhenNoGeneratorOrCreatorMatchFoundTest C# (CSharp) Метод

CreateWithThrowsExceptionWhenNoGeneratorOrCreatorMatchFoundTest() приватный Метод

private CreateWithThrowsExceptionWhenNoGeneratorOrCreatorMatchFoundTest ( ) : void
Результат void
        public void CreateWithThrowsExceptionWhenNoGeneratorOrCreatorMatchFoundTest()
        {
            var buildStrategy = Substitute.For<IBuildStrategy>();

            var target = new DefaultExecuteStrategy();

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

            Action action = () => target.CreateWith(typeof(string));

            action.ShouldThrow<BuildException>();
        }
DefaultExecuteStrategyTests