Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
using Bogus;
using Shouldly;
public class SpecialCaseTests
{
private JobInfo CreateRandomJob() {
var faker = new Faker();
string title = faker.Hacker.Phrase;
string company = faker.Company.CompanyName;
int monthsInJob = faker.Random.Int(1, 4200);
return new JobInfo(title, company, monthsInJob);
}
[Fact]
public void MattElandShouldScoreMaxValue()
{
// Arrange
var resume = new ResumeInfo("Matt Eland");
resume.Jobs.Add(CreateRandomJob());
var provider = new KeywordScoringProvider();
var analyzer = new ResumeAnalyzer(provider);
// Act
var result = analyzer.Analyze(resume);
// Assert
result.Score.ShouldBe(int.MaxValue);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment