public void BuildMockBrokenProjectShouldRaiseException() { var plcProject = new MockTcProjectBuilder( "../../../../BrokenProjectForUnitTests/PLC2/PLC2.plcproj", "../../../TcProjectBuildTestData/failedBuildWithExtraTextBelow.log" ); Assert.Throws <ProjectBuildFailed>(() => plcProject.Build(verbose: true)); }
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)); }