public void append_ele611() { LinkedList<Ele> linkedList; LinkedList<Ele> linkedList1; Ele[] eles = new Ele[1]; linkedList = new LinkedList<Ele>((IEnumerable<Ele>)eles); linkedList1 = this.append_ele(linkedList, (Ele)null); Assert.IsNotNull((object)linkedList1); Assert.AreEqual<int>(2, linkedList1.Count); Assert.IsNotNull(linkedList1.First); Assert.IsNotNull(linkedList1.First.List); Assert.IsTrue (object.ReferenceEquals(linkedList1.First.List, (object)linkedList1)); Assert.IsNotNull(linkedList1.First.Next); Assert.IsNotNull(linkedList1.First.Next.List); Assert.IsTrue (object.ReferenceEquals(linkedList1.First.Next.List, (object)linkedList1)); Assert.IsNull(linkedList1.First.Next.Next); Assert.IsNotNull(linkedList1.First.Next.Previous); Assert.IsTrue (object.ReferenceEquals(linkedList1.First.Next.Previous, linkedList1.First)); Assert.IsNull(linkedList1.First.Next.Value); Assert.IsNull(linkedList1.First.Previous); Assert.IsNull(linkedList1.First.Value); Assert.IsNotNull(linkedList1.Last); Assert.IsTrue(object.ReferenceEquals(linkedList1.Last, linkedList1.First.Next)); }
/*----------------------------------------------------------------------------- append_ele appends the new_ele to the list. If list is null, a new list is created. The modified list is returned. -----------------------------------------------------------------------------*/ public static LinkedList<Ele> append_ele(LinkedList<Ele> a_list, Ele a_ele) { if (a_list == null) a_list = new_list(); /* make list without compare function */ a_list.AddLast(a_ele); /* insert at the tail */ return (a_list); }
public void find_nth723() { LinkedList<Ele> linkedList; LinkedListNode<Ele> linkedListNode; Ele[] eles = new Ele[1]; linkedList = new LinkedList<Ele>((IEnumerable<Ele>)eles); linkedListNode = this.find_nth(linkedList, 768); Assert.IsNull((object)linkedListNode); }
public void del_ele496() { LinkedList<Ele> linkedList; LinkedList<Ele> linkedList1; Ele[] eles = new Ele[0]; linkedList = new LinkedList<Ele>((IEnumerable<Ele>)eles); linkedList1 = this.del_ele(linkedList, (LinkedListNode<Ele>)null); Assert.IsNull((object)linkedList1); }
public void find_nth49201() { LinkedList<Ele> linkedList; LinkedList<Ele> linkedList1; LinkedListNode<Ele> linkedListNode; Ele[] eles = new Ele[0]; linkedList = new LinkedList<Ele>((IEnumerable<Ele>)eles); linkedList1 = new LinkedList<Ele>((IEnumerable<Ele>)linkedList); linkedListNode = this.find_nth(linkedList1, 0); Assert.IsNull((object)linkedListNode); }
public void del_ele842() { LinkedList<Ele> linkedList; LinkedList<Ele> linkedList1; Ele[] eles = new Ele[1]; Ele s0 = new Ele(0); s0.priority = 0; eles[0] = s0; linkedList = new LinkedList<Ele>((IEnumerable<Ele>)eles); linkedList1 = this.del_ele(linkedList, (LinkedListNode<Ele>)null); Assert.IsNull((object)linkedList1); }
public void find_nth812() { LinkedList<Ele> linkedList; LinkedListNode<Ele> linkedListNode; Ele[] eles = new Ele[1]; linkedList = new LinkedList<Ele>((IEnumerable<Ele>)eles); linkedListNode = this.find_nth(linkedList, 0); Assert.IsNotNull((object)linkedListNode); Assert.IsNotNull(linkedListNode.List); Assert.AreEqual<int>(1, linkedListNode.List.Count); Assert.IsNotNull(linkedListNode.List.First); Assert.IsTrue (object.ReferenceEquals(linkedListNode.List.First, (object)linkedListNode)); Assert.IsNotNull(linkedListNode.List.Last); Assert.IsTrue (object.ReferenceEquals(linkedListNode.List.Last, (object)linkedListNode)); Assert.IsNull(linkedListNode.Next); Assert.IsNull(linkedListNode.Previous); Assert.IsNull(linkedListNode.Value); }
public static Ele new_process(int prio) { Ele proc; proc = new Ele(alloc_proc_num++); proc.priority = prio; num_processes++; return proc; }
public Ele Constructor(int num) { Ele target = new Ele(num); return target; // TODO: add assertions to method EleTest.Constructor(Int32) }
public LinkedList<Ele> append_ele(LinkedList<Ele> a_list, Ele a_ele) { LinkedList<Ele> result = Program.append_ele(a_list, a_ele); return result; // TODO: add assertions to method ProgramTest.append_ele(LinkedList`1<Ele>, Ele) }