public void AddAt_should_add_element_on_first_position_if_list_is_empty() { //Arrange var list = new Structures.LinkedList <int>(); int index = 0; int data = 0; //Act var actionResult = list.AddAt(index, data); //Assert Assert.True(actionResult); }
public void AddAt_should_return_false_if_index_is_out_of_range() { //Arrange var list = new Structures.LinkedList <int>(); int index = -1; int data = 0; //Act var actionResult = list.AddAt(index, data); //Assert Assert.False(actionResult); }