public void TestInvalidateAll() { AddTransactions(30); _unit.UnverifiedSortedTxCount.Should().Be(0); _unit.SortedTxCount.Should().Be(30); _unit.InvalidateAllTransactions(); _unit.UnverifiedSortedTxCount.Should().Be(30); _unit.SortedTxCount.Should().Be(0); }
public void TestInvalidateAll() { AddTransactions(30); _unit.UnverifiedSortedTxCount.ShouldBeEquivalentTo(0); _unit.SortedTxCount.ShouldBeEquivalentTo(30); _unit.InvalidateAllTransactions(); _unit.UnverifiedSortedTxCount.ShouldBeEquivalentTo(30); _unit.SortedTxCount.ShouldBeEquivalentTo(0); }
public void TestInvalidateAll() { AddHighPriorityTransactions(30); AddLowPriorityTransactions(60); _unit.UnverifiedSortedHighPrioTxCount.ShouldBeEquivalentTo(0); _unit.UnverifiedSortedLowPrioTxCount.ShouldBeEquivalentTo(0); _unit.SortedHighPrioTxCount.ShouldBeEquivalentTo(30); _unit.SortedLowPrioTxCount.ShouldBeEquivalentTo(60); _unit.InvalidateAllTransactions(); _unit.UnverifiedSortedHighPrioTxCount.ShouldBeEquivalentTo(30); _unit.UnverifiedSortedLowPrioTxCount.ShouldBeEquivalentTo(60); _unit.SortedHighPrioTxCount.ShouldBeEquivalentTo(0); _unit.SortedLowPrioTxCount.ShouldBeEquivalentTo(0); }