Skip to content

Commit

Permalink
fix a test and update some examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sovren-jwesson committed Jul 28, 2021
1 parent de2557a commit 6d9aa6f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/Parsing/Basic Parsing.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static async Task Main(string[] args)
}
catch (SovrenException e)
{
//this was an outright failure, always try/catch for SovrenExceptions when using SovrenClient
//the document could not be parsed, always try/catch for SovrenExceptions when using SovrenClient
Console.WriteLine($"Error: {e.SovrenErrorCode}, Message: {e.Message}");
}

Expand Down
2 changes: 1 addition & 1 deletion examples/Parsing/Parsing with Geocoding and Indexing.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static async Task Main(string[] args)
}
catch (SovrenException e)
{
//this was an outright failure, always try/catch for SovrenExceptions when using SovrenClient
//the document could not be parsed, always try/catch for SovrenExceptions when using SovrenClient
Console.WriteLine($"Error: {e.SovrenErrorCode}, Message: {e.Message}");
}

Expand Down
7 changes: 4 additions & 3 deletions src/Sovren.SDK.Tests/IntegrationTests/ParsingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,10 @@ public async Task TestResumeQuality()
Assert.That(response.ResumeData.ResumeMetadata.ResumeQuality[0].Findings, Has.Count.AtLeast(1));
Assert.IsNotNull(response.ResumeData.ResumeMetadata.ResumeQuality[0].Findings[0].Message);
Assert.IsNotNull(response.ResumeData.ResumeMetadata.ResumeQuality[0].Findings[0].QualityCode);
Assert.AreEqual("227", response.ResumeData.ResumeMetadata.ResumeQuality[0].Findings[0].QualityCode);
Assert.IsNotNull(response.ResumeData.ResumeMetadata.ResumeQuality[0].Findings[3].SectionIdentifiers);
Assert.That(response.ResumeData.ResumeMetadata.ResumeQuality[0].Findings[3].SectionIdentifiers, Has.Count.AtLeast(1));
//do not test these since they are subject to change somewhat frequently
//Assert.AreEqual("111", response.ResumeData.ResumeMetadata.ResumeQuality[0].Findings[0].QualityCode);
//Assert.IsNotNull(response.ResumeData.ResumeMetadata.ResumeQuality[0].Findings[3].SectionIdentifiers);
//Assert.That(response.ResumeData.ResumeMetadata.ResumeQuality[0].Findings[3].SectionIdentifiers, Has.Count.AtLeast(1));

await Task.CompletedTask;
}
Expand Down

0 comments on commit 6d9aa6f

Please sign in to comment.