Skip to content

Commit

Permalink
Add test cases for search by styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhornyak committed Nov 1, 2016
1 parent 75e659b commit 4d209aa
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions FlickrNetTest/PhotosSearchTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,26 @@ public void PhotosSearchByColorCode()
}
}

[TestCase(Style.BlackAndWhite)]
[TestCase(Style.DepthOfField)]
[TestCase(Style.Minimalism)]
[TestCase(Style.Pattern)]
public void PhotoSearchByStyles(Style style)
{
var o = new PhotoSearchOptions
{
Text = "nature",
Page = 1,
PerPage = 10,
Styles = new[] { style }
};

var photos = Instance.PhotosSearch(o);

Assert.IsNotNull(photos);
Assert.IsNotEmpty(photos);
}

[Test]
public void PhotosSearchIsCommons()
{
Expand Down

0 comments on commit 4d209aa

Please sign in to comment.