public void TestNonPublicTarget()
        {
            var    build  = new NonPublicTargetTestBuild();
            Action action = () => ExecutableTargetFactory.CreateAll(build);

            action.Should().Throw <Exception>().And.Message.Should()
            .StartWith("Property 'D' must be marked public to override inherited member from:");
        }
Exemplo n.º 2
0
        public void TestNonPublicTarget()
        {
            var build     = new NonPublicTargetTestBuild();
            var exception = Assert.Throws <Exception>(() => ExecutableTargetFactory.CreateAll(build));

            exception.Message.Should()
            .StartWith("Assertion failed: Target 'D' must be marked public to override inherited member from:");
        }