public void Set_SetHighIndex_ThrowArgumentException() { var node = new UnrolledLinkedListNode(6); Action action = () => node.Set(7, 0); action.Should().Throw <ArgumentException>(); }
public void GetAndSet_SetItemNodeAndGetIt_ReturnExpectedItem() { var node = new UnrolledLinkedListNode(6); node.Set(0, 1); var result = node.Get(0); result.Should().Be(1); }