public void the_person_should_have_moved_house() { Assert.That(this.PublishedEvents.Count <IEvent>() == 1); Console.WriteLine("count:\t{0}\r\nthing:\t{1}", PublishedEvents.Count <IEvent>(), PublishedEvents); Console.WriteLine("lastevent:\t{0}", PublishedEvents.Last <IEvent>()); }
public void Then_the_ProjectRenamed_event_been_published() { PublishedEvents.Count().Should().Be(1); var evnt = (ProjectRenamed)PublishedEvents.First(); evnt.EventSourceId.Should().Be(TheId); evnt.NewName.Should().Be(NewName); }
public void Should_create_one_event() { Assert.AreEqual(1, PublishedEvents.Count()); }
public void Then_one_event_NewProjectCreated_should_have_been_published() { PublishedEvents.Count().Should().Be(1); PublishedEvents.First().Should().BeOfType <NewProjectCreated>(); }
public void it_should_do_no_more() { Assert.True(PublishedEvents.Count() == 1); }
public void it_should_do_no_more() { Assert.Equal(PublishedEvents.Count(), 1); }
public void it_should_do_no_more() { Assert.That(PublishedEvents.Count(), Is.EqualTo(1)); }