in tst/PortingAssistantExtensionIntegTests/AssessmentTests.cs [217:265]
private async Task<Boolean> TestSolutionAsync(string[] projectInfo, string targetFramework)
{
PAIntegTestClient client = null;
try
{
string solutionPath = Path.Combine(tempProjectRoot, projectInfo[0]);
string solutionName = projectInfo[1];
string jsonFile = Path.Combine(zipRootFolderPath, projectInfo[2]);
StartLanguageServer();
client = new PAIntegTestClient(solutionPath, solutionName);
await client.InitClientAsync();
var currentResults = await client.AssessSolutionAsync(targetFramework);
/* Uncomment this method to save the results in a json file*/
//SaveResults(jsonFile, currentResults);
Boolean result = VerifyResults(jsonFile, currentResults);
Console.WriteLine("Verification Result: " + result);
return result;
}
catch(Exception e)
{
Console.WriteLine(e);
return false;
}
finally
{
if (client != null)
{
try
{
await client.CleanupAsync();
}
catch (Exception e) { }
}
try
{
ProcessHelper.getInstance().StopServer();
}
catch (Exception e) { }
}
return false;
}