Skip to content

Commit

Permalink
More test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mynameisbogdan committed Jul 29, 2023
1 parent d344351 commit f09da06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -41,7 +41,7 @@ public void Setup()
}

[TestCase("Robert Harris", "Robert Harris")]
[TestCase("James Patterson", "James Patterson")]
[TestCase("Lyndsay Ely", "Lyndsay Ely")]
[TestCase("Elisa Puricelli Guerra", "Elisa Puricelli Guerra")]
public void successful_author_search(string title, string expected)
{
Expand All @@ -54,7 +54,7 @@ public void successful_author_search(string title, string expected)
ExceptionVerification.IgnoreWarns();
}

[TestCase("Harry Potter and the sorcerer's stone", null, "Harry Potter and the Sorcerer's Stone")]
[TestCase("Harry Potter and the sorcerer's stone", null, "Harry Potter and the Sorcerer's Stone (Harry Potter, Book 1): By J.K. Rowling | The Complete Summary & Analysis")]
[TestCase("edition:3", null, "Harry Potter and the Sorcerer's Stone")]
[TestCase("edition: 3", null, "Harry Potter and the Sorcerer's Stone")]
[TestCase("asin:B0192CTMYG", null, "Harry Potter and the Sorcerer's Stone")]
Expand Down Expand Up @@ -86,7 +86,7 @@ public void no_author_search_result(string term)
}

[TestCase("Catherine Butler", 0, typeof(Author), new[] { "Catherine Butler" }, TestName = "author")]
[TestCase("Catherine Butler", 1, typeof(Book), new[] { "Shattered Dreams", "Shattered Dreams" }, TestName = "book")]
[TestCase("Catherine Butler", 1, typeof(Book), new[] { "Twisted Winter", "Shattered Dreams" }, TestName = "book")]
public void successful_combined_search(string query, int position, Type resultType, string[] expected)
{
var result = Subject.SearchForNewEntity(query);
Expand Down
Expand Up @@ -25,7 +25,7 @@ public void Setup()
}

[TestCase("Robert Harris", 575)]
[TestCase("James Patterson", 3780)]
[TestCase("Lyndsay Ely", 8056539)]
[TestCase("Elisa Puricelli Guerra", 4481805)]
public void successful_author_search(string title, int expected)
{
Expand All @@ -38,7 +38,7 @@ public void successful_author_search(string title, int expected)
ExceptionVerification.IgnoreWarns();
}

[TestCase("Harry Potter and the sorcerer's stone", 61209488)]
[TestCase("Harry Potter and the sorcerer's stone", 27425945)]
[TestCase("B0192CTMYG", 61209488)]
[TestCase("9780439554930", 48517161)]
public void successful_book_search(string title, int expected)
Expand Down

0 comments on commit f09da06

Please sign in to comment.