public void When_clearing_sequence()
        {
            var sut = new CursorPositionCalculator(0);
            sut.Append(new SourcedEventProcessingElement(1, new TestEvent()));
            sut.Append(new SourcedEventProcessingElement(2, new TestEvent()));
            sut.Append(new SourcedEventProcessingElement(4, new TestEvent()));

            sut.ClearSequence();

            sut.Count.Should().Be(1);
            sut.SequenceLength.Should().Be(0);
        }
        public void When_clearing_sequence()
        {
            var sut = new CursorPositionCalculator(0);
            sut.Append(CreateProcessingEvent(1));
            sut.Append(CreateProcessingEvent(2));
            sut.Append(CreateProcessingEvent(4));

            sut.ClearSequence();

            sut.Count.Should().Be(1);
            sut.SequenceLength.Should().Be(0);
        }        
Exemple #3
0
        public void When_clearing_sequence()
        {
            var sut = new CursorPositionCalculator(0);

            sut.Append(new SourcedEventProcessingElement(1, new TestEvent()));
            sut.Append(new SourcedEventProcessingElement(2, new TestEvent()));
            sut.Append(new SourcedEventProcessingElement(4, new TestEvent()));

            sut.ClearSequence();

            sut.Count.Should().Be(1);
            sut.SequenceLength.Should().Be(0);
        }
Exemple #4
0
        public void When_clearing_sequence()
        {
            var sut = new CursorPositionCalculator(0);

            sut.Append(CreateProcessingEvent(1));
            sut.Append(CreateProcessingEvent(2));
            sut.Append(CreateProcessingEvent(4));

            sut.ClearSequence();

            sut.Count.Should().Be(1);
            sut.SequenceLength.Should().Be(0);
        }