private LinkedListDS GetLinkedList(IConsoleWriter writerMock) { var linkedList = new LinkedListDS(writerMock); linkedList.Add(1); linkedList.Add(2); linkedList.Add(3); return(linkedList); }
static void Main(string[] args) { var list = new LinkedListDS(); list.Add(1); list.Add(2); list.Add(3); list.Reverse(); list.Result(); Console.WriteLine("completed"); }