public void Execute_WhenTweetIsNotArchived_ArchivesTweet() { Tweet tweet = New.Tweet; var test = new ArchiveTweetCommand(tweet); test.Execute(null); Assert.True(tweet.IsArchived); }
public void Execute_WhenTweetIsNotArchived_ArchivesTweet() { ITweet tweet = A.Tweet.Build(); var test = new ArchiveTweetCommand(tweet); test.Execute(null); tweet.IsArchived.Should().Be.True(); }
public void CanExecuteChanged_WhenTweetBecomesArchived_IsRaised() { Tweet tweet = New.Tweet; var test = new ArchiveTweetCommand(tweet); bool eventRaised = false; test.CanExecuteChanged += (sender, args) => eventRaised = true; tweet.Archive(); Assert.True(eventRaised); }
public void CanExecuteChanged_WhenTweetBecomesArchived_IsRaised() { ITweet tweet = A.Tweet.Build(); var test = new ArchiveTweetCommand(tweet); bool eventRaised = false; test.CanExecuteChanged += (sender, args) => eventRaised = true; tweet.Archive(); eventRaised.Should().Be.True(); }
public void CanExecute_WhenTweetIsNotArchived_IsTrue() { var test = new ArchiveTweetCommand(New.Tweet); Assert.True(test.CanExecute(null)); }
public void CanExecute_WhenTweetIsNotArchived_IsTrue() { var test = new ArchiveTweetCommand(A.Tweet.Build()); test.CanExecute(null).Should().Be.True(); }