Source/Events/EventSequenceAssertion.cs
/// <summary>
/// Asserts that an <see cref="IEvent" /> of the specified type is present at the specified position in the stream, allowing further assertions against the instance.
/// </summary>
/// <param name="sequenceNumber">Position in the stream.</param>
/// <returns>An EventValueAssertion{T} to allow assertions against the <see cref="IEvent" /> instance.</returns>
Asserts that an  of the specified type is present at the specified position in the stream, allowing further assertions against the instance.
Asserts that an of the specified type is present at the specified position in the stream allowing further assertions against the instance .
public EventValueAssertion<T> AtSequenceNumber(uint sequenceNumber)
        {
            sequenceNumber.ShouldBeLessThan(_events.Count);
            var @event = _events[(int)sequenceNumber];
            @event.ShouldNotBeNull();
            @event.ShouldBeOfExactType<T>();
            return new EventValueAssertion<T>((T)@event);
        }
public EventValueAssertion < T > AtSequenceNumber ( uint sequenceNumber ) { sequenceNumber . ShouldBeLessThan ( _events . Count ) ; var @event = _events [ ( int ) sequenceNumber ] ; @event . ShouldNotBeNull ( ) ; @event . ShouldBeOfExactType < T > ( ) ; return new EventValueAssertion < T > ( ( T ) @event ) ; }
Asserts that an  of the specified type is present at the specified position in the stream, allowing further assertions against the instance.
Asserts that an of the specified type is present at the specified position in the stream allowing further assertions against the instance .
An EventValueAssertion{T} to allow assertions against the  instance.
An EventValueAssertion { T } to allow assertions against the instance .
sequenceNumber
uint
Position in the stream.
Position in the stream .