Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Bogus;
- using Shouldly;
- public class SpecialCaseTests
- {
- private JobInfo CreateRandomJob() {
- var faker = new Faker();
- string title = faker.Name.JobTitle;
- string company = faker.Company.CompanyName;
- int monthsInJob = faker.Random.Int(1, 4200);
- return new JobInfo(title, company, monthsInJob);
- }
- private AnalyzerResult Analyze(ResumeInfo resume) {
- var provider = new KeywordScoringProvider();
- var analyzer = new ResumeAnalyzer(provider);
- return analyzer.Analyze(resume);
- }
- [Fact]
- public void MattElandShouldScoreMaxValue()
- {
- // Arrange
- var resume = new ResumeInfo("Matt Eland");
- resume.Jobs.Add(CreateRandomJob());
- // Act
- var result = Analyze(resume);
- // Assert
- result.Score.ShouldBe(int.MaxValue);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement