예제 #1
0
        public void BuildMockBrokenProjectShouldRaiseException()
        {
            var plcProject = new MockTcProjectBuilder(
                "../../../../BrokenProjectForUnitTests/PLC2/PLC2.plcproj",
                "../../../TcProjectBuildTestData/failedBuildWithExtraTextBelow.log"
                );

            Assert.Throws <ProjectBuildFailed>(() => plcProject.Build(verbose: true));
        }
예제 #2
0
        public void BuildMockBrokenProjectShouldRaiseException()
        {
            string brokenProjectPath = Path.Combine(
                projectDirectory, "BrokenProjectForUnitTests", "PLC2", "PLC2.plcproj"
                );
            string failedBuildLogPath = Path.Combine(
                testDirectory,
                "TcProjectBuildTestData",
                "failedBuildWithExtraTextBelow.log"
                );
            var plcProject = new MockTcProjectBuilder(
                brokenProjectPath, failedBuildLogPath
                );

            Assert.Throws <ProjectBuildFailed>(() => plcProject.Build(verbose: true));
        }