public void Add_AddSomeNumbersToRingBufferShouldWork() { // Arrange RingBufferLinkedList <int> sut = new RingBufferLinkedList <int>(3); int expected = 3; // Act sut.Add(11); sut.Add(12); sut.Add(13); int actual = sut.Size(); // Assert Assert.Equal(expected, actual); }
public void Expand_ExpandRingBufferShouldWork() { // Arrange RingBufferLinkedList <int> sut = new RingBufferLinkedList <int>(3); int expected = 5; // Act sut.Add(1); sut.Add(2); sut.Add(3); sut.Expand(2); sut.Add(4); sut.Add(5); int actual = sut.Size(); // Assert Assert.Equal(expected, actual); }