Advertisement
Guest User

Untitled

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