public void AddFirst_should_add_data_on_first_position() { //Arrange var list = new Structures.LinkedList <int>(); list.AddFirts(1); list.AddFirts(2); var expectedContent = "21"; //Act var content = GetStringOfElements(list); //Assert Assert.AreEqual(expectedContent, content); }
public void AddFirst_should_return_list_with_one_element_if_it_was_empty() { //Arrange var list = new Structures.LinkedList <int>(); list.AddFirts(1); var expectedLength = 1; //Act var length = list.Length; //Assert Assert.AreEqual(expectedLength, length); }