Source/Events/EventSequenceAssertion.cs
/// <summary>
/// Asserts that an <see cref="IEvent" /> of the specified type is the last event in the stream, allowing further assertions against the instance.
/// </summary>
/// <returns>An EventValueAssertion{T} to allow assertions against the <see cref="IEvent" /> instance.</returns>
Asserts that an  of the specified type is the last event in the stream, allowing further assertions against the instance.
Asserts that an of the specified type is the last event in the stream allowing further assertions against the instance .
public EventValueAssertion<T> AtEnd()
        {
            var @event = _events[^1];
            @event.ShouldNotBeNull();
            @event.ShouldBeOfExactType<T>();
            return new EventValueAssertion<T>((T)@event);
        }
public EventValueAssertion < T > AtEnd ( ) { var @event = _events [ ^ 1 ] ; @event . ShouldNotBeNull ( ) ; @event . ShouldBeOfExactType < T > ( ) ; return new EventValueAssertion < T > ( ( T ) @event ) ; }
Asserts that an  of the specified type is the last event in the stream, allowing further assertions against the instance.
Asserts that an of the specified type is the last event 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 .