Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. using Bogus;
  2. using Shouldly;
  3.  
  4. public class SpecialCaseTests
  5. {
  6. [Fact]
  7. public void MattElandShouldScoreMaxValue()
  8. {
  9. // Arrange
  10. var resume = new ResumeInfo("Matt Eland");
  11. var faker = new Faker();
  12. string title = faker.Hacker.Phrase;
  13. string company = faker.Company.CompanyName;
  14. int monthsInJob = faker.Random.Int(1, 4200);
  15. var job = new JobInfo(title, company, monthsInJob);
  16. resume.Jobs.Add(job);
  17. var provider = new KeywordScoringProvider();
  18. var analyzer = new ResumeAnalyzer(provider);
  19.  
  20. // Act
  21. var result = analyzer.Analyze(resume);
  22.  
  23. // Assert
  24. result.Score.ShouldBe(int.MaxValue);
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement