protected SampleState ResolveState(IEnumerable <IEvent> events) { SampleState sut = GetSut(); sut.Execute(events); return(sut); }
public void ItDoesNotVisitEvents() { Assert.Throws <InvalidOperationException>(() => State.Execute(source)); }
public void ItThrows() { Assert.Throws <InvalidOperationException>(() => State.Execute(source)); }
public WhenVisitingTwice() { State = GetSut(); State.Execute(source); }
public void ItThrowsWhenNull() { SampleState sut = GetSut(); Assert.Throws <ArgumentNullException>(() => sut.Execute(null)); }