Created
September 7, 2019 16:37
-
-
Save IntegerMan/cffee9457d34f268d1a2b089beb0a05c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Bogus; | |
using Shouldly; | |
public class SpecialCaseTests | |
{ | |
[Fact] | |
public void MattElandShouldScoreMaxValue() | |
{ | |
// Arrange | |
var resume = new ResumeInfo("Matt Eland"); | |
var faker = new Faker(); | |
string title = faker.Hacker.Phrase; | |
string company = faker.Company.CompanyName; | |
int monthsInJob = faker.Random.Int(1, 4200); | |
var job = new JobInfo(title, company, monthsInJob); | |
resume.Jobs.Add(job); | |
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