public void GetPosts_ValidParameterPassed_ShouldReturnPosts() { var count = 15; var posts = _dataFetcher.GetPosts(count).Result; Assert.IsNotNull(posts); Assert.IsTrue(posts.Any() && posts.Count() == count); }
public void GetPosts_ValidParameterPassed_ShouldReturnPosts() { var count = 15; var posts = _dataFetcher.GetPosts(count).Result; Assert.IsNotNull(posts); Assert.IsTrue(posts.Any() && posts.Count() == count); }