Created
March 26, 2012 05:58
-
-
Save shiftkey/2203299 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Fact] | |
public void Fetch_WithBlogSelectedAndOneResult_DisplaysOnePost() | |
{ | |
// arrange | |
var result = new[] { new Post() }; | |
var task = MockTask(result); | |
metaWeblogService | |
.GetRecentPostsAsync(Arg.Any<BlogSetting>(), Arg.Any<int>()) | |
.Returns(task); | |
subject.SelectedBlog = new BlogSetting(); | |
// act | |
subject.Fetch(); | |
task.ExecuteAndCheck(() => Assert.NotEmpty(subject.Posts)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment