IIntegrationResult result = //... get the integration result from CI system if (result.HasModifications) { //execute additional tests as there were code changes } else { //skip additional tests as there were no code changes }
public void VerifyIntegrationResult(IIntegrationResult result) { if (result.HasModifications) { Console.WriteLine("There were changes made since last build."); } else { Console.WriteLine("No changes detected since last build."); } }In this example, the VerifyIntegrationResult method takes an IIntegrationResult object and checks if there were any changes made to the source code repository since the last build. It outputs a message accordingly.