示例#1
0
        protected SampleState ResolveState(IEnumerable <IEvent> events)
        {
            SampleState sut = GetSut();

            sut.Execute(events);

            return(sut);
        }
示例#2
0
 public void ItDoesNotVisitEvents()
 {
     Assert.Throws <InvalidOperationException>(() => State.Execute(source));
 }
示例#3
0
 public void ItThrows()
 {
     Assert.Throws <InvalidOperationException>(() => State.Execute(source));
 }
示例#4
0
 public WhenVisitingTwice()
 {
     State = GetSut();
     State.Execute(source);
 }
示例#5
0
        public void ItThrowsWhenNull()
        {
            SampleState sut = GetSut();

            Assert.Throws <ArgumentNullException>(() => sut.Execute(null));
        }